Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <
1490015515-25851-7-git-send-email-armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
def subst_strong(doc):
"""Replaces *foo* by @strong{foo}"""
- return re.sub(r'\*([^*\n]+)\*', r'@emph{\1}', doc)
+ return re.sub(r'\*([^*\n]+)\*', r'@strong{\1}', doc)
def subst_emph(doc):
"""Replaces _foo_ by @emph{foo}"""
- return re.sub(r'\b_([^_\n]+)_\b', r' @emph{\1} ', doc)
+ return re.sub(r'\b_([^_\n]+)_\b', r'@emph{\1}', doc)
def subst_vars(doc):
@subsection Subsection
-@emph{strong} @emph{with emphasis}
+@strong{strong} @emph{with emphasis}
@code{var} @{in braces@}
@itemize @bullet
@item
Examples:
@itemize @minus
@item
-@emph{verbatim}
+@strong{verbatim}
@item
@{braces@}
@end itemize
@deftp {Enum} Enum
-@subsection Produces @emph{invalid} texinfo
+@subsection Produces @strong{invalid} texinfo
@b{Values:}
@table @asis
@item @code{one}
-The @emph{one} @{and only@}
+The @emph{one} @{and only@}
@item @code{two}
Not documented
@end table