Add Space After Paragraphs For Rich Text?

ivan's Avatar

ivan

26 Sep, 2016 12:22 PM

I am trying to increase the space between an unordered list and the paragraph that follows the list. I have tried various css codes but every time I copy rich text into Apple Pages, the space between the unordered bullet list is lost. Exporting to docx however, keeps space after a bulleted list and the next paragraph.

Copying rich text from Typora or Ulysses works fine with bullet lists.

Can someone please share what css should I use to be able to change the top and bottom margin and so that it stays in Apple Pages when I paste rich text into it?

  1. Support Staff 1 Posted by Brett on 26 Sep, 2016 03:01 PM

    Brett's Avatar

    Unfortunately the current conversion to Rich Text doesn't create the
    proper RTF elements for styling (there will be a new version soon with
    an entirely rewritten RTF export system). However, exporting DOCX
    (readable by Pages) or ODT (readable by TextEdit) instead of Copy RTF
    will give you better spacing automatically.

    -Brett

  2. 2 Posted by ivan on 26 Sep, 2016 03:12 PM

    ivan's Avatar

    I am trying to find the path of least resistance. Exporting to Word and then importing word to Pages is kind of awkward. Brett, is it possible to recreate this formatting using Markdown so that when I export to Word, the output looks like the attached image?

    I am trying to find the best way to write professional reports. I rely on TextExpander a lot to write the report. If I write the report in markdown and copy rich text, I then have to manually copy and paste all the dates and names into the template cover page because of its formatting (as seen in the attached image).

    If I use TextExpander right inside Pages, I cannot use the Javascript in Textexpander to replace He/She, His/Her, etc... as it only works on plain text and removes bold headings and words from the report. I am kind of stuck here.

    Is it possible to create formatting using Markdown so that it exports like in the attached image? Any other approaches I can take?

  3. Support Staff 3 Posted by Brett on 26 Sep, 2016 03:26 PM

    Brett's Avatar

    For what you're showing in the image, a basic table would do the trick, then you could export straight to PDF.

    Set the table up like this:

    |                          |                     |
    | :---                     | :---                |
    | Client:                  | Joe Tucker          |
    | Date of birth:           | 4-15-22             |
    | Date of loss:            |                     |
    | Procedures administered: | one<br>two<br>three |
    

    Note that multiline cells are difficult in Markdown tables, so using the <br> tag to create a line break will save a lot of headache.

    And then add the following to Preferences->Style->Additional CSS (click Edit CSS):

    table { width: 100%; }
    
    table, table * { 
        background: transparent!important; 
        border: 0!important;
    }
    
    table td:first-child { font-weight: bold; }
    

    Here's how it looks for me using the Swiss style:

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac