Are line breaks considered as a paragraph ?

Hi
I am imorting a HTML text into a TextFlow using TextConverter.importToFlow
The format I am using is TextConverter.TEXT_FIELD_HTML_FORMAT
I am setting the formatso the space after a paragrph as follows:
paragraphSpaceAfter = 30
My question is why are line breaks tag <br> give me the same space between lines as a paragraph?
can I control the height of the line breaks ?

You could try \n as newlines - replacing <br> elements with new lines.  I doubt it will be a robust solution as the TextFieldHTMLImporter collapses the whiteSpace always.
If you want to import HTML (and not TextField HTML) you're best bet is to create your own importer.  Starting with the TextField HTML importer is an option if you feel its close enough.  Minimally there's some useful code in the class for converting street HTML to XML.
There's a blog post about connecting a client importer to TLF 2.0.
http://blogs.adobe.com/tlf/2010/11/custom-clipboard-formats.html
Hope that helps,
Richard

Similar Messages

  • [iPhone] Soft line-breaker

    I want to render strings on a view by myself on iPhone.
    How can I know where soft line-breaks are in a string?
    If a line-braker considers word-wraps, that would be better.
    On Mac, I used ATSUBreakLine of ATSUI.
    http://developer.apple.com/documentation/Carbon/Reference/ATSUIReference/Reference/reference.html#//appleref/c/func/ATSUBreakLine
    That works well on Mac.
    But iPhone SDK doesn't contain it.
    And I investigated Quartz 2D text functions.
    But I cannot find any functions I want.
    Any ideas?
    * What I want:
    Input:
    String, font, max width in pixels
    Output:
    Number of characters we can print within the max width
    Soft line-breaker (considering word-wraps) would be better
    Satoshi Nakagawa

    bump I'm trying to do something similar too.

  • Deleting extra forced line breaks with Find/Change

    Ladies and Gentlemen,
    I'm importing word .doc that are text-heavy and the formatting is such that there are lots of extra forced line breaks creating a blank line between paragraphs.
    To avoid manually deleting the extra forced line breaks to eliminate the blank line of space between paragraphs, what are the best steps to doing this an easier way?
    Any advice on clear steps to do it using the find/change option?
    Thanks in advance as always..
    JRH

    Are you talking about two hard returns [Enter] in a row, or a soft and hard return [Shift + Enter] and [Enter]? A forced line break is a soft return, but most Word users would just hit the return key for an empty paragraph to get an empty line.
    In either case, you can do a simple text find change, if GREP intimidates you. Use the special characters menu to enter either two "end of paragraph" or a "forced line break" and "end of paragraph" markers into the find field and a single "end of paragraph" marker into the change field.
    This is included as part of the "Find/change by list" sample script which adds some other common cleanup functions like converting two spaces to one. The advantage to using GREP is it will find any number of consecutive paragraph end markers and convert to one in a single pass, while a text search must be run multiple times to catch the heavy handed author.
    Peter

  • Formula Line Breaks

    I'm trying to format text so that there are line breaks in a generated string, but in such a way that it can work with Xcelsius.
    I'm aware that you can use CHAR(10) in Excel to make a line break, but Xcelsius doesn't like the Char function.
    Here is my formula: ="Item A:" & C39 & "Item B:" & C40
    I want it to look like:
    Item A:
    Information from C39
    Item B:
    Information from C40
    Does anyone know a way to have line breaks in a formula that Xcelsius can accept? The object is to get the text into a text box.
    Thanks in advance!

    Use the following Formula ..
    ="Item A:"&"
    "&B3&"
    "&"Item B:"&"
    "&B4
    if you want the Line break in formula "Item A:"&" then Hit ALt+ Enter .it will come in new line..
    Xcelsius can accept the line breaks in a formula.
    Hope this helps.
    Thanks,
    Srinivas Dandamudi

  • Fix the forced line break bug already!

    Illustrator has had the same bug since version 11. In 5 consecutive versions!
    Forced line break in a justified text behave like a paragraph ending (Enter) aligning the line before the forced line break left. It looks like a new paragraph but it is just incorrectly aligned line in the middle of a paragraph.
    Also Find & Replace recognizes only forced line break but (^n) not paragraph ending (^p) although both can be used in text.
    Since discretionary hyphens do not have an effect whatsoever it requires a lot of manual editing to make typographically acceptable text block to the back of a book jacket.
    So, Adobe. How hard is exactly fix this very annoying bug which has been reported dozens of times? It has even been demonstrated to your tech people who agreed that it really is a bug and should be fixed.

    A force line break is still the same paragraph. You won't see a difference unless there is some text change with each new paragraph, such as a style change or the addition of space before or after a paragraph. The forced line break can also be used as a trigger in a nested style to make the first line or lines formatting for a paragraph different from the following lines.
    Peter

  • CS5/win: line break instead of paragraph?

    Hello,
    how can I insert just a line break and not a new paragraph?
    Shift-Enter as it works in **all other** programs do not work.
    Thanks
    Carlos

    Just checked that, you are right, Photoshop doesn't recognize Shift-Enter as a line break and treat it as a Return which is a problem with paragraph formatting. Obviously a bug.
    Good news workaround is that it recognizes the line break character if you paste it from another program like Microsoft Word. If you don't have a program that allows you to copy just that character and use paste instead of Shift-Return, you have to type your entire text in some other program and copy paste to Photoshop.

  • Line Breaks are not appearing in Production system

    Hi,
           In my company users have one problem, which I am not getting the same either Dev or Quality. I tried to replicate it but I am getting fine without any issues. Issue is users create sales order in Interaction Center by using the credit cards. We wrote the code to pop up with the information about the amount being deducted against each card( users can use multiple cards) once the order is saved.
    Below is the code in one method of the class. lv_text contains the information like 'Visa 3002 for amount 1209.00 is authorized(#1567)'
    CONCATENATE lv_text '<BR><BR>' INTO lv_text SEPARATED BY cl_abap_char_utilities=>newline.
    Problem is in Production we are not getting line breaks whereas I am getting fine in Dev and Quality with the above code. In production, users are getting below. There is full stop between the amount(#1567$) and <BR><BR>.
    Visa 3002 for amount 1209.00 is authorized(#1567). <BR><BR> Visa 5443 for amount
    1300 is authorized(#7654). <BR><BR>
    But in Dev and Quality the same above message we get  like below, which is correct.
    Visa 3002 for amount 1209.00 is authorized(#1567).
    Visa 5443 for amount 1300 is authorized(#7654).
    I changed personal layout values in the Personalization and tried but no use.
    Can anyone help me in this regard?
    Thanks,
    Baasanthi.

    Hi Andrei,
                    I am closing this issue as it is being taken care by team lead.
    Thanks,
    Baasanthi.

  • Why Rich Text (HTML Only) format email introduces line breaks (paragraph marks) in the email body in html?

    A sentence in rich text (change in Options, Delivery format) appears as a single sentence in browser. But when I check the page source I see that sentence has been broken in to multiple lines. Why is this done? Isn't this a bug?
    When viewed in a browser or application that supports rich text this does not create any problem since the line breaks are not taken into account . But I am trying to extract the text from this html and display in a nonHTML application like notepad.
    Is this done on purpose?
    For eg.
    In browser - Honesty is the best policy
    In View HTML Source -
    Honesty
    Is the
    best
    policy.

    lets start at the beginning.
    There is no such thing as rich text email, unless it in internal corporate stuff like MS Exchange, Lotus notes etc. EMail on the internet is HTML or Plain Text.
    I have no options > delivery format in my settings. Is this something to do with Outlook perhaps?
    Then there is your image. All those MSO objects. They stand for Microsoft Office Objects and indicate the source of the HTML as being Outlook or at least Microsoft Office. All in all I think your asking about Microsoft actions on a Mozilla forum.

  • HT4641 after modifying a document in Pages I found that there are horizontal lines across every line break when opened and saved it in DropBox.  Does anyone know why?

    after modifying a document in Pages ON MY IPAD AIR I found that there are horizontal lines across every line break when opened and saved it in DropBox.  Does anyone know why?

    Thanks a lot for your swift response. And sorry if it was a bit too hectic to go through my detailed query (which I did because it was misunderstood when I asked previously). As I've mentioned above, I was informed that updating to 5.0.1 would '''require''' me to '''delete''' the current version and then install the new one. And doing so will involve losing all my bookmarks. I guess I should have been more specific and detailed there. By losing, I didn't mean losing them forever. I'm aware that they're secured in some place and deleting and installing the software doesn't harm its existence. What I meant that if I install the new version, I'd have to delete the old one. And after installing the new version, I'd have to transfer them (bookmarks) back from wherever they are. Get it? When it updated from 3.6.9 to 3.6.13, and from 3.6.13 to 3.6.18, I didn't need to follow that process. They were already present on their own.
    BTW, I'm having no problems with 3.6.18 but after learning about the existence of version 5.0.1, I'm a bit too eager to lay my hands over it.
    Thanks for your help; hope this wasn't extremely long.

  • Forced Line Break and Paragraph Return

    Hi.. It´s maybe a simple question but I cannot see diferences.
    What´s the difference between Forced Line Break and Paragraph Return ?
    Thank's for the answer

    A force line break is still the same paragraph. You won't see a difference unless there is some text change with each new paragraph, such as a style change or the addition of space before or after a paragraph. The forced line break can also be used as a trigger in a nested style to make the first line or lines formatting for a paragraph different from the following lines.
    Peter

  • Text pasted into Dreamweaver does not bring in line breaks, paragraphs

    This has happened to me a couple times and a quick web search has not yielded satisfaction. I've copied text from a web page, tried to paste it into an html doc in Dreamweaver and it all comes in as a single long line.  Same clipboard pasted into other editors shows with line breaks... Paste Special in Dreamweaver has not worked for me. Oh... got it, I've been pasting into Design view.. pasting into Code view brings it in properly... Thanks!

    Use Edit > Paste Special > Text with Structure.
    Nancy O.

  • Applescript batch convert DOC to TXT with line breaks

    Hey guys, I recently got stuck at work having to convert over 1,000 DOC files to TXT files with line breaks.
    I've found online several different Applescripts that work great at converting DOC files to TXT files but I can't find one that will do the TXT files with line breaks.
    If anyone has a script that can do this I would be crazy grateful.
    Converting these one by one with Word is taking forever to do.
    Thanks for any help you can give me.

    Excuse me for a moment for speaking harshly to you.  You are causing yourself utterly unnecessary headaches by not being clear with us and not stopping to think, and it's high time you learned that that is an incorrect way to approach anything on a computer.  Consider:
    you don't know what you're doing (in the sense that you don't know what 'text with line breaks' means)
    you don't know (or at least haven't explained) why this needs to be done
    (therefore) you don't know if this needs to be done at all
    (and yet) you are doing it anyway, in a mindlessly repetitive fashion, driving yourself batty and irritating me
    At least for the time being, humans are the ones who think and computers the ones who grunt away mindlessly; try to reverse those roles and everything gets done badly and slowly. Stop, look, think, plan ahead - that's what your brain is good at if you give it a chance.
    Now, as far as I can tell from poking around the web, 'text only with line breaks' means that the document  is saved as a plain-text file, but with a carriage return linefeed combination (CR/LF) as a paragraph delimiter (this is a Windows format - unix uses a single linefeed, Macs might use a single carriage return or a single linefeed). I don't know why anyone would want that format - most software will convert that seamlessly (or at least can be told to convert that).  Are you trying to feed this into some dinosaur of a database?  At any rate, if that's what you want, this script should do it. caution, this script overwrites the original files; I suggest you make a copy of one or two files in a separate folder, and run the script on them first to check that the output works for whatever reason you're doing this:
    set baseFolder to choose folder with prompt "Choose a folder of files to process"
    tell application "Finder"
              set fileList to (every file of baseFolder whose name extension is "txt") as alias list
    end tell
    repeat with thisFile in fileList
              set itsText to read thisFile
              if (offset of (return & linefeed) in itsText) = 0 then
      -- file is not already formatted with CR/LF, so convert
                        set itsChunks to tid(itsText, {return, linefeed})
                        set itsNewText to tid(itsChunks, return & linefeed)
                        set fp to open for access thisFile with write permission
                        set eof of fp to 0
      write itsNewText to fp as text
      close access fp
              end if
    end repeat
    on tid(input, delim)
      -- handler for text items conversions
              set {oldTID, my text item delimiters} to {my text item delimiters, delim}
              if class of input is list then
                        set output to input as text
              else
                        set output to text items of input
              end if
              set my text item delimiters to oldTID
              return output
    end tid

  • Exporting EPUB from InDesign CC not including line breaks

    I am done with a book and have it formatted the way I want. I am exporting it to EPUB through InDesign CC and previewing it in iBooks and also through Kindle previewer. Everything is fine except for one thing... where I have created page breaks, the exported file is not including them.
    I tried exporting to HTML just to see what it did and there is no line breaks there. I know its proprietary markup ( in kindle ) but I still would like to include them in a few specific places ( to mark seperations of chapters ).
    In kindle this is the tag they say to use: <mbp:pagebreak />
    In iBooks, I have not yet figured out how to create them, I am going to work on that today once I sort out the kindle version.
    Is there any way to force it to include line breaks on export. Or alternatively, I could export to HTML but I am having trouble figuring out how to go back to the EPUB format from there and also it didn't include the fonts, so there was other issues to consider as I have a custom font I was using for the headers that looks really good and matches the font on the book cover as well... so I really want to keep that consistent if possible.
    Are there any tricks or things I can try here to improve on my workflow and do a better job of seperating the chapters ?

    Ok, I hadn't tested the advanced options out in the export menu. It works and does so on both the iBooks and Kindle previewer.. which is good news since that is really important to me to try and find a workflow I can update both of these formats from when I continue to work on my book.
    The only strange part is that on some chapters its adding an extra blank page between the chapter and the next. What is odd is that it only happens on some of them (in the iBook reader only, the kindle previewer isn't doing this)
    I am going to look into this more closely but its not a major deal as I would prefer a little seperation in the chapters anyways, its not really a bad thing. It is just hard to figure out why its doing this.

  • Line break in txt file

    Can someone help me?
    I just wanna make a line break in a txt file...
    I tried it this way
    FileWriter fw = new FileWriter("W:\\write.txt");
    fw.write(string1 + "\n" + string2);
    fw.close();
    I don't know why it doesn't work.
    in the file it apears just a black block, but if i copy it in this text area, theres automaticly a line break
    thx for your support
    Guardian

    Everything has been said, but I thought I'll just make it more clearly :-)
    The thing is:
    Unix use a line break; <or was it vice versa>
    Afterwards someone decided text had to be devided in linebreaks and paragraph;
    That's why you have <p> and <br> in html
    Now line break just means, I'm on the end of a line and i must break but i don't want to
    so please if you can, hold it on the same line when displaying.
    So to keep multiple platform oparability it's a good thing to use both:
    newline character + carriage return = break to other line

  • Problem in formatting of long text -- line break not recognized.

    Hi ,
    We have a PO smartform in our SRM system and we are facing problem with formatting of long text on the smartform for long texts maintained for the PO.
    for ex, we maintain the long text as --
    "this is long text for item 1.
    1. this is line 1.
    2. this is line 2."
    On the smartform it is displayed as --
    this is long text for item 1. 1. this is line 1. 2. this is line 2.
    So basically, the line breaks in the text are not considered in the smartform .
    Any suggestions on how to fix this issue ??
    Thanks.

    Hello Harmeet,
    Which Std. FM are you using to fetch the PO texts? If the PO doesn't exist in your system, i'm afraid you cannot use Include Texts as mentioned by Harsh.
    As an alternative you'll have to create a table & pass the text lines to it! I don't think SmartForms are not smart enough to identify new-line character.
    BR,
    Suhas

Maybe you are looking for

  • Help - can't open .mpg file with Quicktime 7.3

    Hi folks, Just tried to open a .mpg file of a recent santa visit for my little boys and Quicktime indicated it couldn't open it saying it wasn't a movie. I upgrade to Quicktime pro but that didn't solve the problem. Any thoughts as regards possible s

  • New C6-01 Not Compatible with my USB Port

    Please help! Just bought a brand new C6-01. Now the phone cannot be recognized by my laytop's USB port! Please, if anyone knows there is a USB driver to help connect the Nokia C6-01 to a Windows Vista laptop!? Appreciate you help...

  • Global Resource Directory frozen oracle rac database

    I have 2 node oracle cluster on x86_64 solaris 10 system and i am getting the following error while starting asm instance on node2. Here are the error in the log file. cluster interconnect IPC version:Oracle UDP/IP (generic) IPC Vendor 1 proto 2 IPC

  • Why do dialogs open for javascript actions when started from a batch operation from bridge?

    I have a fairly simple script (written in javascript) that duplicates the current document and does some other manipulations.  I also have recorded an action that executes this script. When I run the action manually, everything works beautifully.  Wh

  • Gigabite limit 9GB. Is there a way too exceed this?

    Encore has a possibility to build dvd-file directly on hard disk for later burning. As DVD disks has capacity 4,7 or 8,5 Encore seems to have a gigabite limit even when building to disk. It would be very useful to be able to exceed the limit. You can