Skip to content

Comments

fix: new line making words together#7

Open
tairosonloa wants to merge 1 commit into57uff3r:mainfrom
tairosonloa:main
Open

fix: new line making words together#7
tairosonloa wants to merge 1 commit into57uff3r:mainfrom
tairosonloa:main

Conversation

@tairosonloa
Copy link

@tairosonloa tairosonloa commented Sep 2, 2023

Problem

When exporting notes, new line characters were being replaced by an empty string. This was making words before and after the \n being together. Example:

# In the book

This is an annotation
inside a paragraph

# Before my changes (exported result)

This is an annotationinside a paragraph

# After my changes

This is an annotation inside a paragraph

Note how annotation and inside were wrongly being exported together (without space) prior to my changes.

Changes

  • Replaces "\n" by " " instead of ""
  • Removes unused deps (just did a go mod tidy)

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.

1 participant