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

Plus signs cause strange formatting in numbered lists #413

Closed
stevesgt opened this issue Nov 8, 2018 · 4 comments
Closed

Plus signs cause strange formatting in numbered lists #413

stevesgt opened this issue Nov 8, 2018 · 4 comments

Comments

@stevesgt
Copy link

stevesgt commented Nov 8, 2018

Versions

RedNotebook version (make sure you have the latest version): 2.7 Windows

Operating system and version:
Windows 10 Enterprise, V1709, Build 16299.716

Expected behavior

Plus signs in numbered list text do not affect formatting

Actual behavior

Text between the plus-sign at the beginning of the line and the plus-sign in the text is rendered very large (like an HTML H1 tag) in the editing interface.

Steps to reproduce the behavior

Create a numbered list, such as:

  • item one
  • item two
  • item two+
  • item three

See that the second "item two" line is rendered in very large font.

Log output when reproducing behavior

Please paste contents from $HOME/.rednotebook/rednotebook.log,
where $HOME is usually C:\Users<username> on Windows.

2018-11-08 13:18:27,735 INFO Writing log to file "C:\Users\sserg.rednotebook\rednotebook.log"
2018-11-08 13:18:27,735 INFO System encoding: mbcs
2018-11-08 13:18:27,736 INFO Language code: en_US
2018-11-08 13:18:27,774 INFO Using pyyaml for loading and dumping
2018-11-08 13:18:27,845 INFO Running in portable mode: False
2018-11-08 13:18:27,845 INFO First Start: False
2018-11-08 13:18:27,845 INFO RedNotebook version: 2.7
2018-11-08 13:18:27,848 INFO System info: machine: AMD64, platform: Windows-10-10.0.16299-SP0, processor: Intel64 Family 6 Model 142 Stepping 9, GenuineIntel, python_version: 3.4.4, release: 10, system: Windows, GTK: (3, 18, 9), Glib: (2, 52, 1), PyGObject: (3, 18, 2), YAML: 3.10
2018-11-08 13:18:28,513 DEBUG Default font: Sans 10
2018-11-08 13:18:28,513 DEBUG Default size: 10.0
2018-11-08 13:18:28,687 DEBUG Tray icon visible: False
2018-11-08 13:18:28,696 INFO Opening journal at 'C:\Users\sserg\.rednotebook\data'
2018-11-08 13:18:28,696 DEBUG Starting to load files in dir "C:\Users\sserg.rednotebook\data"
2018-11-08 13:18:28,699 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2011-09.txt"
2018-11-08 13:18:28,728 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2011-10.txt"
2018-11-08 13:18:28,812 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2011-11.txt"
2018-11-08 13:18:28,866 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2011-12.txt"
2018-11-08 13:18:28,917 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2012-01.txt"
2018-11-08 13:18:28,985 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2012-02.txt"
2018-11-08 13:18:29,039 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2012-03.txt"
2018-11-08 13:18:29,091 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2012-04.txt"
2018-11-08 13:18:29,151 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2012-05.txt"
2018-11-08 13:18:29,211 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2012-06.txt"
2018-11-08 13:18:29,289 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2012-07.txt"
2018-11-08 13:18:29,355 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2012-08.txt"
2018-11-08 13:18:29,431 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2012-09.txt"
2018-11-08 13:18:29,487 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2012-10.txt"
2018-11-08 13:18:29,546 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2012-11.txt"
2018-11-08 13:18:29,613 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2012-12.txt"
2018-11-08 13:18:29,704 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2013-01.txt"
2018-11-08 13:18:29,822 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2013-02.txt"
2018-11-08 13:18:29,914 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2013-03.txt"
2018-11-08 13:18:29,967 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2013-04.txt"
2018-11-08 13:18:30,040 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2013-05.txt"
2018-11-08 13:18:30,083 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2013-06.txt"
2018-11-08 13:18:30,138 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2013-07.txt"
2018-11-08 13:18:30,190 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2013-08.txt"
2018-11-08 13:18:30,256 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2013-09.txt"
2018-11-08 13:18:30,327 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2013-10.txt"
2018-11-08 13:18:30,404 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2013-11.txt"
2018-11-08 13:18:30,499 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2013-12.txt"
2018-11-08 13:18:30,582 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2014-01.txt"
2018-11-08 13:18:30,671 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2014-02.txt"
2018-11-08 13:18:30,740 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2014-03.txt"
2018-11-08 13:18:30,832 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2014-04.txt"
2018-11-08 13:18:30,972 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2014-05.txt"
2018-11-08 13:18:31,070 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2014-06.txt"
2018-11-08 13:18:31,181 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2014-07.txt"
2018-11-08 13:18:31,289 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2014-08.txt"
2018-11-08 13:18:31,378 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2014-09.txt"
2018-11-08 13:18:31,445 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2014-10.txt"
2018-11-08 13:18:31,526 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2014-11.txt"
2018-11-08 13:18:31,643 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2014-12.txt"
2018-11-08 13:18:31,776 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2015-01.txt"
2018-11-08 13:18:31,868 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2015-02.txt"
2018-11-08 13:18:31,943 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2015-03.txt"
2018-11-08 13:18:32,042 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2015-04.txt"
2018-11-08 13:18:32,138 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2015-05.txt"
2018-11-08 13:18:32,219 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2015-06.txt"
2018-11-08 13:18:32,315 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2015-07.txt"
2018-11-08 13:18:32,413 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2015-08.txt"
2018-11-08 13:18:32,544 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2015-09.txt"
2018-11-08 13:18:32,632 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2015-10.txt"
2018-11-08 13:18:32,744 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2015-11.txt"
2018-11-08 13:18:32,849 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2015-12.txt"
2018-11-08 13:18:32,933 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2016-01.txt"
2018-11-08 13:18:33,008 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2016-02.txt"
2018-11-08 13:18:33,085 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2016-03.txt"
2018-11-08 13:18:33,206 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2016-04.txt"
2018-11-08 13:18:33,295 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2016-05.txt"
2018-11-08 13:18:33,438 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2016-06.txt"
2018-11-08 13:18:33,535 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2016-07.txt"
2018-11-08 13:18:33,634 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2016-08.txt"
2018-11-08 13:18:33,746 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2016-09.txt"
2018-11-08 13:18:33,838 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2016-10.txt"
2018-11-08 13:18:33,949 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2016-11.txt"
2018-11-08 13:18:33,983 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2016-12.txt"
2018-11-08 13:18:34,069 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2017-01.txt"
2018-11-08 13:18:34,152 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2017-02.txt"
2018-11-08 13:18:34,242 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2017-03.txt"
2018-11-08 13:18:34,343 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2017-04.txt"
2018-11-08 13:18:34,493 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2017-05.txt"
2018-11-08 13:18:34,611 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2017-06.txt"
2018-11-08 13:18:34,725 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2017-07.txt"
2018-11-08 13:18:34,837 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2017-08.txt"
2018-11-08 13:18:34,945 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2017-09.txt"
2018-11-08 13:18:35,082 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2017-10.txt"
2018-11-08 13:18:35,236 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2017-11.txt"
2018-11-08 13:18:35,389 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2017-12.txt"
2018-11-08 13:18:35,551 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2018-01.txt"
2018-11-08 13:18:35,720 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2018-02.txt"
2018-11-08 13:18:35,860 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2018-03.txt"
2018-11-08 13:18:36,032 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2018-04.txt"
2018-11-08 13:18:36,148 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2018-05.txt"
2018-11-08 13:18:36,241 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2018-06.txt"
2018-11-08 13:18:36,387 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2018-07.txt"
2018-11-08 13:18:36,548 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2018-08.txt"
2018-11-08 13:18:36,731 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2018-09.txt"
2018-11-08 13:18:36,865 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2018-10.txt"
2018-11-08 13:18:37,025 DEBUG Loading file "C:\Users\sserg.rednotebook\data\2018-11.txt"
2018-11-08 13:18:37,048 DEBUG Finished loading files in dir "C:\Users\sserg.rednotebook\data"
2018-11-08 13:18:37,630 INFO Connected Signals: [2, 22, 15]
2018-11-08 13:18:37,630 DEBUG Start took 9.785248041152954 seconds
2018-11-08 13:18:37,630 DEBUG Trying to enter the gtk main loop
2018-11-08 13:18:38,648 INFO Last backup was made 14 days ago
2018-11-08 13:18:38,916 INFO 2.7 is the latest version
2018-11-08 13:18:38,916 INFO Current version: 2.7, latest version: 2.7, newer: False

@jendrikseipp
Copy link
Owner

Thanks for the report. This is actually a limitation of the underlying txt2tags markup language. It thinks + item two+ is a numbered header. The easiest solution is to avoid ending numbered lines with plus signs :-)

@stevesgt
Copy link
Author

stevesgt commented Nov 8, 2018

You can even make it happen with:

+ item (two+) three

But it does not happen with:

+ item (two+) three
(Note preceding space.)

@jendrikseipp
Copy link
Owner

Thanks. Probably the regular expressions in files/t2t.lang could follow the ones in external/txt2tags.py more closely.

@jendrikseipp jendrikseipp reopened this Nov 8, 2018
@jendrikseipp
Copy link
Owner

Since we're contemplating adding support for Markdown (#560), I don't think it's useful to try to fix this issue.

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

No branches or pull requests

2 participants