mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 19:59:46 +00:00
Do not replace "--" with "\twohyphens" in formula macros.
(cherry picked from commit 5cb5d2cb5a
)
This commit is contained in:
parent
6fbe470b23
commit
dc7a5ecea1
@ -620,7 +620,7 @@ def convert_dashes(document):
|
|||||||
while i < len(document.body):
|
while i < len(document.body):
|
||||||
words = document.body[i].split()
|
words = document.body[i].split()
|
||||||
if len(words) > 1 and words[0] == "\\begin_inset" and \
|
if len(words) > 1 and words[0] == "\\begin_inset" and \
|
||||||
words[1] in ["CommandInset", "ERT", "External", "Formula", "Graphics", "IPA", "listings"]:
|
words[1] in ["CommandInset", "ERT", "External", "Formula", "FormulaMacro", "Graphics", "IPA", "listings"]:
|
||||||
# must not replace anything in insets that store LaTeX contents in .lyx files
|
# must not replace anything in insets that store LaTeX contents in .lyx files
|
||||||
# (math and command insets withut overridden read() and write() methods
|
# (math and command insets withut overridden read() and write() methods
|
||||||
# filtering out IPA makes Text::readParToken() more simple
|
# filtering out IPA makes Text::readParToken() more simple
|
||||||
|
@ -124,6 +124,7 @@ What's new
|
|||||||
|
|
||||||
* LYX2LYX
|
* LYX2LYX
|
||||||
|
|
||||||
|
- Do not convert "--" to "\twohyphens" in formula macros.
|
||||||
|
|
||||||
|
|
||||||
* USER INTERFACE
|
* USER INTERFACE
|
||||||
|
Loading…
Reference in New Issue
Block a user