Automatic 'return' after a paragraph

It seems to me TLF automatically inserts a 'return' between two paragraphs. So if the first paragraph ends with a return, you get two empty lines between the paragraphs. Is this a correct assumption?
I have been working around this by deleting the last return in a paragraph...
But now (which maybe seems a little bit strange) I want to show two paragraphs without any return, so my work around doesn't do the trick anymore...
Does anybody know if you can turn off the automatic return after a paragraph?

Thanks for the replies!
I think the "paragraph terminator" is what I would like to bypass...
I've made a short example:
package {
import flash.display.Sprite;
import flashx.textLayout.formats.TextLayoutFormat;
import flashx.textLayout.container.ContainerController;
    import flashx.textLayout.elements.ParagraphElement;
    import flashx.textLayout.elements.SpanElement;
import flashx.textLayout.elements.TextFlow;
import flashx.textLayout.container.ScrollPolicy;
public class Test2 extends Sprite
  public function Test2() {
   var tekstLayoutFormat:TextLayoutFormat = new TextLayoutFormat();
   var cs:Sprite = new Sprite();
   addChild(cs);
   var textFlow:TextFlow = new TextFlow();
   textFlow.format = tekstLayoutFormat;
   var tekstveldController = new ContainerController(cs, 400, 400);
   tekstveldController.verticalScrollPolicy = ScrollPolicy.OFF;
   tekstveldController.horizontalScrollPolicy = ScrollPolicy.OFF;
   textFlow.flowComposer.addController(tekstveldController);
   textFlow.flowComposer.updateAllControllers();
   var paragraphElement = new ParagraphElement();
   var spanElement = new SpanElement();
   spanElement.text = "text1";
   spanElement.fontSize = 10;
   paragraphElement.addChild(spanElement);
   var paragraphElement2 = new ParagraphElement();
   var spanElement2 = new SpanElement();
   spanElement2.text = "text2";
   spanElement2.fontSize = 10;
   paragraphElement2.addChild(spanElement2);
   textFlow.addChild(paragraphElement);
   textFlow.addChild(paragraphElement2);
   textFlow.flowComposer.updateAllControllers();
This test shows:
text1
text2
What I would like to get (maybe strangely enough) is:
text1text2
is this possible?

Similar Messages

  • Automatic return after keyboard entry

    Hello,
    I want to know if I always have to press the 'enter' key in the program that I've written if I know how long the entry should be that I will enter (length of 1 char).
    Or can I do something other like a timeout ( if no key is pressed for a period that I chose it will do an automatic 'enter' )?
    What I want to do is:
    I want to have a query if the program should do something again. If so I will enter 'y' (for yes) to do it again, if it mustn't be done again I will press 'n' (for no).
    Because my english is not so good (and perhaps the explanation of my problem) please ask if you cannot understand me.

    Yes, you'll always have to press enter with pure Java. I recommend using a GUI or something like jcurses.

  • Is there a way to designate automatically returning to your homepage when closing other windows/files/tabs etc.? Could do it on the Mini, but haven't found magic spell for new iMac. Thanks!

    Is there a way to automatically return to homepage after closing other windows/files/tabs etc.? Was able to do this on Mini, but have been unable to find setting to do it on new iMac. Thanks in advance!

    If you were able to do it on the Mini  you should be able to on an iMac, they use the same versions of OS X. You just have to recall how you set it up.

  • Deleted files automatically return

    Hi there,
    I have a strange problem. Somehow when I delete a collection of .torrent files (and empty secure my trash), after a while the deleted files 'automatically' return in my movies-folder. I want them deleted...
    What can cause this problem?
    It drives me crazy!

    The deleted files reappear after several minutes, I can't find what triggers this.
    In a terminal session this came up:
    PID TT STAT TIME COMMAND
    1 ?? Ss 0:01.03 /sbin/launchd
    10 ?? Ss 0:00.77 /usr/libexec/kextd
    11 ?? Ss 0:05.88 /usr/sbin/DirectoryService
    12 ?? Ss 0:01.63 /usr/sbin/notifyd
    13 ?? Ss 0:00.73 /usr/sbin/syslogd
    14 ?? Ss 0:04.22 /usr/sbin/configd
    16 ?? Ss 0:02.94 /usr/sbin/distnoted
    17 ?? Ss 0:03.40 /usr/sbin/mDNSResponder -launchd
    21 ?? Ss 0:06.46 /usr/sbin/securityd -i
    27 ?? Ss 0:01.69 /usr/sbin/cupsd -l
    28 ?? Ss 0:00.30 /System/Library/PrivateFrameworks/MobileDevice.frame
    29 ?? Ss 1:16.79 /usr/sbin/update
    30 ?? Ss 0:00.01 /sbin/SystemStarter
    34 ?? Ss 1:07.74 /System/Library/Frameworks/CoreServices.framework/Fr
    35 ?? Ss 0:01.48 /System/Library/CoreServices/loginwindow.app/Content
    36 ?? Ss 0:00.01 /usr/sbin/KernelEventAgent
    37 ?? Ss 0:05.11 /usr/sbin/kdcmond -n -a
    39 ?? Ss 0:00.01 /usr/libexec/hidd
    40 ?? Ss 0:05.83 /System/Library/Frameworks/CoreServices.framework/Ve
    42 ?? Ss 0:00.03 /sbin/dynamic_pager -F /private/var/vm/swapfile
    45 ?? Ss 0:01.99 /usr/sbin/diskarbitrationd
    49 ?? Ss 0:00.52 /usr/sbin/blued
    50 ?? Ss 0:00.01 autofsd
    51 ?? Ss 0:01.59 /usr/libexec/ApplicationFirewall/socketfilterfw
    52 ?? Ss 68:25.84 /usr/bin/WDDrvSvc
    73 ?? S 0:00.08 /usr/sbin/krb5kdc -n -r LKDC:SHA1.491A2E5605B106B27E
    78 ?? Ss 0:00.24 /Library/Application Support/VMware Fusion/vmnet-nat
    84 ?? Ss 0:00.19 /Library/Application Support/VMware Fusion/vmnet-dhc
    86 ?? Ss 0:00.00 /Library/Application Support/VMware Fusion/vmnet-net
    89 ?? Ss 0:00.00 /Library/Application Support/VMware Fusion/vmnet-net
    92 ?? Ss 0:01.16 /usr/sbin/nmbd -F
    93 ?? Ss 0:00.24 /Library/Application Support/VMware Fusion/vmnet-dhc
    95 ?? Ss 0:00.00 /Library/Application Support/VMware Fusion/vmnet-bri
    96 ?? Ss 0:04.99 /System/Library/CoreServices/coreservicesd
    100 ?? Ss 4:09.58 /System/Library/Frameworks/ApplicationServices.frame
    140 ?? Ss 0:01.02 /sbin/launchd
    144 ?? S 0:00.13 /System/Library/CoreServices/AirPort Base Station Ag
    148 ?? S 0:02.29 /System/Library/CoreServices/Spotlight.app/Contents/
    149 ?? S 0:00.33 /usr/sbin/UserEventAgent -l Aqua
    150 ?? S 0:00.00 /usr/sbin/pboard
    151 ?? S 0:03.46 /System/Library/CoreServices/Dock.app/Contents/MacOS
    152 ?? S 0:00.01 /Library/StartupItems/WDNotifier.app/Contents/MacOS/
    153 ?? S 0:06.33 /System/Library/Frameworks/ApplicationServices.frame
    155 ?? Ss 0:00.55 /usr/sbin/coreaudiod
    160 ?? S 0:38.22 /System/Library/CoreServices/SystemUIServer.app/Cont
    161 ?? S 0:55.21 /System/Library/CoreServices/Finder.app/Contents/Mac
    175 ?? S 0:03.12 /Library/Image Capture/Devices/EPSON Scanner.app/Con
    176 ?? S 0:09.57 /System/Library/Image Capture/Support/Image Capture
    185 ?? S 0:00.12 /Applications/iTunes.app/Contents/Resources/iTunesHe
    187 ?? S 0:00.87 /Applications/Microsoft AutoUpdate.app/Contents/MacO
    188 ?? S 0:05.46 /Library/Application Support/EyeTV/EyeTV Helper.app/
    189 ?? S 0:01.07 /Applications/StuffIt 12/MagicMenu.app/Contents/MacO
    194 ?? Ss 0:00.11 /Applications/StuffIt 12/MagicMenu.app/Contents/Reso
    196 ?? S 0:00.42 /System/Library/PrivateFrameworks/AOSNotification.fr
    202 ?? Ss 0:00.58 /usr/sbin/smbd -F
    203 ?? S 0:00.00 /usr/sbin/smbd -F
    259 ?? Ss 0:09.73 /usr/sbin/AppleFileServer
    2933 ?? SNs 0:00.98 /System/Library/Frameworks/CoreServices.framework/Fr
    2944 ?? S 0:36.64 /Applications/Firefox.app/Contents/MacOS/firefox-bin
    2949 ?? S 0:01.43 /Applications/Utilities/Terminal.app/Contents/MacOS/
    2975 ?? U 0:14.77 /Applications/iWork '08/Pages.app/Contents/MacOS/Pag
    2976 ?? S 0:00.19 /System/Library/Services/AppleSpell.service/Contents
    2982 ?? S 0:06.97 /Applications/Font Book.app/Contents/MacOS/Font Book
    3058 ?? S 0:00.91 /System/Library/Frameworks/SyncServices.framework/Ve
    3059 ?? Ss 0:00.03 /usr/sbin/ocspd
    3078 s000 Ss 0:02.70 login -pf arnoldconsten
    3079 s000 S 0:00.02 -bash
    3090 s000 R+ 0:00.00 ps A
    What does this mean? For me it is like ancient chinese....

  • How to disable TextEdit's automatic termination after closing last open document?

    Hi!
    I was wondering how to disable TextEdit's automatic termination after closing the last open document.
    It's so annoying!
    Thanks for everything!
    Chris.

    Quit TextEdit, launch the Terminal app in /Utilities, copy & paste this one-liner into the window that pops up, hit the return key, quit the Terminal app, and restart.
    defaults write com.apple.TextEdit NSDisableAutomaticTermination -bool yes
    27" i7 iMac (Mid 2011) refurb, OS X Mavericks (10.9.5), ML & SL, G4 450 MP w/Leopard, 9.2.2

  • Automatically return to main vi from subi

    I have a main VI and a sub VI. The sub vi front panel is opened when it is called and the main VI is updated. But I need to automatically return to the main VI front panel after running the subvi
    Attachments:
    24-01-2014 main vi.vi ‏121 KB
    electron volatage sub vi.vi ‏9 KB
    mass sweep subvi.vi ‏17 KB

    Norbert_B wrote:
    Despite that, the code and interfaces should be reworked to match common development style guides (e.g. gray scale colors).
    Agreed!
    What's the point of the outer case structure of the main VI (now encompassing while loop). Are you using "continuous run" for this???
    Yes, your color scheme is just garish!
    Why do you have colored case structures on the diagram? Makes the wires hard to see (try a boolean wire in one of you case structures!). Use the default white, or, if you absolutely must, very light pastel colors as background.
    There is no reason to maximise the front panels of the subVIs, blocking everything else on the desktop. Same for the diagrams.
    You have a lot of explicit repetitive operations (e.g. string subset). That could be done in a loop instead, reducing the code to <10% of the current complexity.
    Your small cases all contain "replace substring", since this is common to all cases of each case structure, it belongs after the case structure. The case structure only needs to contain what's different (the string in this case)! Even better use a string array and index into it with the ring. No case structure needed at all!
    If you want to make the subVIs interactive, they need to wait for user input. Currently they show for a nanosecond, complete, and disappear again. (hint: while loop and event structure, for example.)
    What is the point of the flat sequence? Seems unecessary.
    There is a primitive for "equal zero". Alternatively, wire the integer to the case selector and make one case zero and the other "default".
    Your front panel has a wild mix of fonts (arial. times roman, application, etc.). Make a gobal design decision!
    Why are your LEDs distorted in random directions? Keep them all round or at least all the same shape.
    LabVIEW Champion . Do more with less code and in less time .

  • I-photo has been working brilliantly until after my last update. Now it automatically closes after 10 seconds. The warning box appears but offers no solution. I have reloaded the software, but this has made no difference. Has anyone else experienced this

    I am having problems with i-photo. It automatically closes after 10 seconds. the warning box gives no guidance. Anyone else had this problem?

    What "warning box"?
    Assuming you're using iPhoto 09 or later:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Secondary mouse button automatically releases after 3 sec

    *Secondary mouse button automatically releases after 3 sec even if still pressed* since upgrade to snow leopard. I have to use extra switches attached via USB being unable to move my arms.
    Apart from that Airport works after adding Location, I am still not able to access internet or mail, skype and time machine backups work. Switching to my neighbours unsecured WLAN I have no problems accessing mail and internet.
    A guest with a PC was also unable to use my WLAN, he was able to connect (gave him password) but could not use internet.
    Any ideas? The "secondary mouse button automatically releases after 3 sec" issue seems not to be posted yet.

    Hi @devitojj 
    Welcome to the HP Forums!
    I would like to take a moment and thank you for using the forum, it is a great place to find answers. For you to have the best experience in the HP forum, I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that when you power off your notebook it automatically restarts in 4 seconds.
    You have tried several steps to try and resolve this but there is no change.
    As it repeated the behavior with the hard drive removed, you know it is not an issue with Windows.
    You have tried updating the bios and returning it to bios defaults but no change.
    Here is a link from answers.microsoft.com that helped other people with this issue.
    Windows 7 computer restarts automatically after shutdown
    This does suggest you edit your registry which does have the potential to cause issues, so be very careful.  I would also suggest backing up your registry before you attempt it, just in case.
    Back up the registry  from Windows.microsoft.com
    If that has not helped, I would try removing the Cmos or RTC battery for 30 seconds and then replacing it.
    Please let me know if this helped.
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • Articles Automatically returning to the top?

    Is there a function to make the articles automatically return to the top page after leaving them? So when you come back its the top page that shows not whatever page you happened to leave the artlce on?
    This would hep immensly with navigation.
    Cheers.

    No. You can reset the folio by triple tapping the title in the nav bar.
    Bob

  • Clicking on another app I get the video automatically returning to normal screen view

    I wonder why, if I put a youtube video in full screen and I click on another app WHILE THE VIDEO IS PLAYING all remain this way. On the contrary, if I first stop the video, clicking on another app I get the video automatically returning to normal screen view... This is very annoying. Is it possible to avoid this?
    Thanks

    Sorry, Mozilla doesn't support the patent-encumbered and royalty-encumbered H.264 standard, they support the OGG/Theodora and WebM free open source standards.
    Microsoft has a H.264 plugin for Firefox, but it is for Windows7 not WinXP or Win Vista. <br />
    http://www.interoperabilitybridges.com/html5-extension-for-wmp-plugin
    There may be other H.264 Firefox plugins out there for WinXP, so do a Google search. Or maybe contact support for that DVR security system and see if they know of or have a Firefox plugin.

  • In Pages 5.1 how do I change the default spacing after a paragraph? I used to be able to do this with the inspector. I no longer see the option.

    In pages 5.1 I was wondering how to change the line spacing after a paragraph.

    This is from the online Pages Help . You have the option to the Help in your Pages Help menu
    Adjust line spacing
    You can adjust the spacing between lines in a paragraph, and change the amount of space before or after a paragraph.
    Click in the paragraph whose spacing you want to change, or select one or more paragraphs.
    In the Text pane of the Format inspector, click Style.
    Click the disclosure triangle next to Spacing, then choose an option from the pop-up menu:
    Lines: Choose when the distance between ascenders (parts of letters that extend to the top of the line) and descenders (parts of letters that extend below the line) should stay the same. The space between lines is proportional to the font size.
    At least: Choose when the distance between lines should remain fixed (but not to overlap if the text gets large).The distance from one line to the next will never be less than the value you set, but it may be larger for larger fonts to prevent overlapping text lines.
    Exactly: The distance between the baselines.
    Between: The value you set increases the space between the lines, instead of increasing the height of the lines. By contrast, double-spacing doubles the height of each line.
    Click the arrows next to the spacing field to set the amount of space for the option you chose.
    To adjust the amount of space before and after the selected paragraph, click the arrows for Before Paragraph and After Paragraph

  • Which system field returns the number of records returned after a select?

    Which system field returns the number of records returned after a select?
    a) sy-index
    b) sy-recno
    c) sy-lncnt
    d) sy-dbcnt
    e) sy-tabix

    Hi,
       SY-DBCNT
    Regards,
    Prashant

  • Using a Macro to add a Carriage Return after each data entry within all cells of an imported range of cells

    I have a macro that copies data from a Target workbook then pastes the data into a destination workbook.  I then wish to use lookups in the destination workbook to view specific data from the pasted range of data on a separate sheet. 
    The problem is, the cells that contain numbers from the pasted data have the green dogeared error flags associated with the cell. The only way I can make a lookup function work, is to go to each cell and manually enter a carriage return after each entry. 
    The code for the macro is given below.  What can be done so that the pasted data contains no errors associated with the number cells?  Or can a second macro be written to clean the data.  If so can you help me out?  Thanks in advance.
    Kindest Regards
    Sub ImportData()
     ' ImportData Macro allows user to select an Excel workbook (i.e. Orchestrate Excel Output),
     ' then copy & paste it into the MediaSpreadsheet.
        Dim wbk As Workbook
        Set wbk = Application.Run("MediaSpreadsheet_1.0.xlsm!OpenFile")
        If wbk Is Nothing Then
            Beep
            Exit Sub
        End If
        Set wbk = ActiveWorkbook
        Range("A9:S116").Copy
        Workbooks("MediaSpreadsheet_1.0.xlsm").Activate
        Sheets("OrchestrateData").Select
        Range("A1").Select
        ActiveSheet.Paste
        With Selection.Font
            .ColorIndex = xlAutomatic
            .TintAndShade = 0
        End With
        With Selection.Interior
            .Pattern = xlNone
            .TintAndShade = 0
            .PatternTintAndShade = 0
        End With
        Selection.Borders(xlDiagonalDown).LineStyle = xlNone
        Selection.Borders(xlDiagonalUp).LineStyle = xlNone
        Selection.Borders(xlEdgeLeft).LineStyle = xlNone
        Selection.Borders(xlEdgeTop).LineStyle = xlNone
        Selection.Borders(xlEdgeBottom).LineStyle = xlNone
        Selection.Borders(xlEdgeRight).LineStyle = xlNone
        Selection.Borders(xlInsideVertical).LineStyle = xlNone
        Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
        wbk.Close
        Sheets("MediaSchedule").Select
    End Sub
    DAPulliam64

    Hi DAPAugust64,
    The green "dogeared error flags" of the cells means that you paste numbers in these cells, but they're formated as Text.
    So you need to change the cells back to the correct format so that the lookup function works fine. You can simply call this method after pasting:
    ActiveSheet.Cells(1, 1).NumberFormat = "General"
    ActiveSheet.Cells(1, 1) = ActiveSheet.Cells(1, 1).Text
    Or use PasteSpecial method to paste the numbers as well as it's format:
    https://msdn.microsoft.com/en-us/library/office/ff837425.aspx
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • HT201177 My new Mac Mini is plugged directly into my tv via hdmi cable and the screen will abruptly go blank and then return after a few seconds. Why is this happening?

    So I recently got a Mac Mini about two weeks ago and for some reason while I am on it the display will go blank and then return after a few seconds. It is happening very frequently. I checked the HDMI cable, I checked my tv and nothing seems to be wrong with them and I don't know what is going on.
    I am getting a bit frustrated because this Mac is brand spanking new and it is totally acting up for no reason whatsoever.
    Could someone please help me with this? I don't want my new computer to be useless. I need it.

    Which TV model do you have?
    Be aware of the fact that very many TVs do expect video signals on their HDMI inputs, not data signals from Macs or PCs. Please consult your TV manual if PCs or Macs can definitely be connected via HDMI, or if e.g. only DVI or RGB/VGA connectors are to be used.
    In case of DVI inputs for data being present, it's not a problem if an HDMI->DVI adapter, or better, cable is being used.
    Many users here are overlooking this potential reason for problems, assuming that HDMI outputs must always communicate with any HDMI input, certainly also because TV manufacturers do not "advertise" such limitations loudly.
    AV receivers with multiple HDMI inputs and a single HDMI video output to the TV are typically more "tolerant" and provide a sort of "converter" function. If present, feed a Mac's HDMI signal into the receiver, not the TV directly. If the receiver does not have enough HDMI inputs, consider to connect rather a video source (DVD player or similar) directly to the TV than the the Mac.

  • Goods Return after Payment

    Hi all!
            how to go for 'Goods Return' after the corresponding invoice been paid?
    thanks in advance,
    Meera.

    Meera,
    Once an Invoice is Paid, the Invoice document is marked as Closed by SAP.  Nothing further can be done about that invoice.
    An Item AP Credit memo actually Credits your Vendors Account and Debits Inventory.
    If you do a Goods Return, the transaction would post as Credit to Allocation Account (depends on your G/L setup) and Debit Inventory.  You will then need to create another A/P Service credit memo document and get credit from the Vendor.
    Therefore an Item AP Credit Memo would be the way to go in this scenario
    Suda

Maybe you are looking for