lyx_mirror/lib/lyx2lyx
Scott Kostyshak 677dc3b7a6 Python fixes from José Matos
See here:

  https://www.mail-archive.com/search?l=mid&q=a7960223ee91696e916b281d1d9fc55df10a9480.camel%40gmail.com

Description from José pasted below:

  Functions `length_in_bp` and `revert_flex_inset` have an error in a
  (almost) never used path. The reason why this was never triggered is
  because this is part of the code where we try all the best efforts
  to recover from an ill-formed LyX file.

  The problem is that the functions call the `document` variable to
  issue an warning if the file does not follow the usual structure.
  The simple fix is to add that variable (as the first for the
  functions) and to add them at all the places where the functions are
  called.

  For reference this code was introduced by Georg (Baum) more than 8
  years ago and it was never reported. So the issue is not urgent in
  any meaningful way. :-)

  In `lyx2lyx/lyx_2_0.py`, in the function `revert_nameref`, there is
  a call to the document variable. The same as all the above.

  In `lyx2lyx/lyx_2_4.py`, in the `class fontmapping`. Similar to the
  above but now for error.
2023-08-19 22:08:08 -04:00
..
.gitignore Setup .gitignore for generated files 2012-03-22 02:16:12 +01:00
CMakeLists.txt Cmake tests: Added parser_tools test to the lyx2lyx group tests 2014-06-12 09:07:57 +02:00
generate_encoding_info.py First step to make lyx2lyx code support both python 2 and python 3 (3.3+) 2015-03-11 12:09:18 +00:00
lyx2lyx Refactor lyx2lyx code. 2020-03-05 00:24:08 +01:00
lyx2lyx_lang.py Add "default" to language list. (fixes a crash). 2007-12-10 18:51:54 +00:00
lyx2lyx_tools.py Sync with master 2022-10-26 10:52:21 +02:00
lyx2lyx_version.py.in Fix inconsistent version in .lyx files (#7951) 2013-07-13 16:02:26 +02:00
lyx_0_06.py Update FSF address, patch from cornelisbb, #7735. 2011-08-25 23:10:36 +00:00
lyx_0_08.py Update FSF address, patch from cornelisbb, #7735. 2011-08-25 23:10:36 +00:00
lyx_0_10.py Small improvement to pre-historic file format conversion. 2018-04-28 14:57:57 +01:00
lyx_0_12.py Sync with master 2022-10-26 10:52:21 +02:00
lyx_1_0.py In lib/lyx2lyx/: s/while 1/while True/ 2016-06-25 17:38:06 -04:00
lyx_1_1_5.py In lib/lyx2lyx/: s/while 1/while True/ 2016-06-25 17:38:06 -04:00
lyx_1_1_6_0.py In lib/lyx2lyx/: s/while 1/while True/ 2016-06-25 17:38:06 -04:00
lyx_1_1_6_3.py In lib/lyx2lyx/: s/while 1/while True/ 2016-06-25 17:38:06 -04:00
lyx_1_1.py Update FSF address, patch from cornelisbb, #7735. 2011-08-25 23:10:36 +00:00
lyx_1_2.py Python fixes from José Matos 2023-08-19 22:08:08 -04:00
lyx_1_3.py Sync with master 2022-10-26 10:52:21 +02:00
lyx_1_4.py Sync with master 2022-10-26 10:52:21 +02:00
lyx_1_5.py Sync with master 2022-10-26 10:52:21 +02:00
lyx_1_6.py Sync with master 2022-10-26 10:52:21 +02:00
lyx_2_0.py Python fixes from José Matos 2023-08-19 22:08:08 -04:00
lyx_2_1.py Sync with master 2022-10-26 10:52:21 +02:00
lyx_2_2.py Sync with master 2022-10-26 10:52:21 +02:00
lyx_2_3.py Python fixes from José Matos 2023-08-19 22:08:08 -04:00
lyx_2_4.py Adding hebrew quotation marks (bug #12849). 2023-08-06 16:50:07 +02:00
LyX.py Correct typos of "occurred" in warnings/errors 2022-11-06 10:06:50 -05:00
Makefile.am Add literal param to InsetInclude 2018-02-23 08:58:16 +01:00
parser_tools.py Sync with master 2022-10-26 10:52:21 +02:00
profiling.py Replace /usr/bin/env python -> /usr/bin/python3 2018-08-29 17:26:21 +01:00
test_lyx2lyx_tools.py lyx2lyx refactoring 2019-06-02 00:04:34 +02:00
test_parser_tools.py New lyx2lyx parser tools find_substring() and set_bool_value(). 2018-02-07 18:49:20 +01:00
unicode_symbols.py lyx2lyx refactoring. 2018-01-31 21:13:43 +01:00