slavonic / odt2md

Convert LibreOffice document to Church Slavonic flavor of Markdown
1 stars 0 forks source link

Line breaks #4

Closed typiconman closed 4 years ago

typiconman commented 4 years ago

The odt2md conversion puts additional line breaks (see enclosed files, after мольба́ми, and after ꙗ҆́кѡ да). Is this a bug or a feature?

testconv.zip testconv.odt.zip

pgmmpk commented 4 years ago

It's a feature. Converter breaks long lines to fit the standard screen width (128? 80?).

Line breaks in Markdown are insignificant (like in LaTeX). Paragraph breaks are indicated by and empty line (again, similar to LaTeX).

Is this causing any problem?

typiconman commented 4 years ago

I find it a bit annoying. In VS Code, the syntax markup only displays correctly if the opening and closing = = and + + are on the same line.

typiconman commented 4 years ago

I must have a non-standard screen width, because it looks weird here. Screenshot from 2020-03-28 21-10-48

pgmmpk commented 4 years ago

In version 0.0.6 two changes:

  1. Default line breaking width increased from 100 to 128 (to better match my editor)
  2. It can be adjusted using --max_line_width/-m flag, if needed.

If it is desirable to avoid any line breaks, set it to 10000.

Your screen seem to use rather large font and hence is probably limited to the classic 80-char width.

typiconman commented 4 years ago

Yes, it works. Thanks!