Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix line break separator #35

Merged
merged 1 commit into from Jan 16, 2019
Merged

Fix line break separator #35

merged 1 commit into from Jan 16, 2019

Conversation

vdugnist
Copy link
Contributor

Based on apple mailing list you should use unicode line separator symbol for line breaks. \n is used for paragraph separation.

Here's my paragraph style:

paragraphStyle.lineSpacing = 0;
paragraphStyle.paragraphSpacing = 10;

Example markdown:

## Text with linebreaks
Lorem ipsum dolor sit amet, consectetur adipiscing elit,  
sed do eiusmod tempor incididunt ut labore et dolore magna  
aliqua. Ut enim ad minim veniam, quis nostrud exercitation  
ullamco laboris nisi ut aliquip ex ea commodo consequat. 

Duis aute irure dolor in reprehenderit in voluptate velit  
esse cillum dolore eu fugiat nulla pariatur.  
Excepteur sint occaecat cupidatat non proident, sunt in  
culpa qui officia deserunt mollit anim id est laborum.

Result before my commit:
img_1301

And result after commit:
img_1300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants