mirror of
https://github.com/mii443/qemu.git
synced 2025-08-23 15:48:20 +00:00
qapi2texi: Fix translation of *strong* and _emphasized_
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>
This commit is contained in:
@ -35,12 +35,12 @@ EXAMPLE_FMT = """@example
|
||||
|
||||
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):
|
||||
|
Reference in New Issue
Block a user