Changing the line spacing

Asked by Savannah King Norton

Single line spacing makes my notes really hard to read, so I tried to change markup.py to make it double-space my lines. I removed the page-break-inside line and made it look like this:

body {
        font-family: Arial, sans-serif;
    }
    <!-- Don't split last line between pages.
         This fix is only supported by Opera -->
    p {
        line-height: 2em;
    }

It doesn't work. What am I doing wrong? I do not know much about CSS.

Question information

Language:
English Edit question
Status:
Solved
For:
RedNotebook Edit question
Assignee:
No assignee Edit question
Solved by:
Jendrik Seipp
Solved:
Last query:
Last reply:
Revision history for this message
Jendrik Seipp (jendrikseipp) said :
#1

Have you tried using relative values like

p {line-height:200%;}

(http://www.w3schools.com/cssref/pr_dim_line-height.asp)

Remember that markup.py is only used for the preview. The edit line-heights cannot be changed as easily, they are controlled by some gtk setting.

Revision history for this message
Savannah King Norton (sln45) said :
#2

I did. It breaks RN if you don't write it as
 p {line-height:200%%;}
but it has no effect regardless. I'm okay if it's only used in the preview. I just don't understand why this property seems unchangeable.

Revision history for this message
Best Jendrik Seipp (jendrikseipp) said :
#3

You might want to try

body {line-height:200%%;}

Revision history for this message
Savannah King Norton (sln45) said :
#4

That worked. Much easier to read, thanks.