Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
874e081d
Commit
874e081d
authored
Jul 07, 2017
by
Robin Sonnabend
Browse files
Only use escape_tex on tex-output in fork-titles
/close
#124
parent
d941646c
Changes
1
Hide whitespace changes
Inline
Side-by-side
parser.py
View file @
874e081d
...
...
@@ -382,7 +382,7 @@ class Fork(Element):
return
stripped_name
in
config
.
PRIVATE_KEYWORDS
def
render
(
self
,
render_type
,
show_private
,
level
,
protocol
=
None
):
name_line
=
escape_tex
(
self
.
name
if
self
.
name
is
not
None
else
""
)
name_line
=
self
.
name
if
self
.
name
is
not
None
else
""
if
level
==
0
and
self
.
name
==
"Todos"
and
not
show_private
:
return
""
if
render_type
==
RenderType
.
latex
:
...
...
@@ -411,7 +411,7 @@ class Fork(Element):
else
:
return
r
"\textit{[An dieser Stelle wurde intern protokolliert.]}"
else
:
return
"
\n
"
.
join
([
name_line
,
begin_line
,
content_lines
,
end_line
])
return
"
\n
"
.
join
([
escape_tex
(
name_line
)
,
begin_line
,
content_lines
,
end_line
])
elif
render_type
==
RenderType
.
wikitext
:
title_line
=
"{0} {1} {0}"
.
format
(
"="
*
(
level
+
2
),
name_line
)
content_parts
=
[]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment