]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qapi2texi: Fix translation of *strong* and _emphasized_
authorMarkus Armbruster <armbru@redhat.com>
Mon, 20 Mar 2017 13:11:55 +0000 (14:11 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 21 Mar 2017 09:42:58 +0000 (10:42 +0100)
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>
scripts/qapi2texi.py
tests/qapi-schema/doc-good.texi

index 5c4db785749957055897dd744216bc41c75520e6..9e015002efc46723b7f82750f5f9fcd5009a23c8 100755 (executable)
@@ -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):
index 1160aaf851808dc6d7f4a000be3163c2dbcb5e02..c410626e4aafe1dea041315be6e157f988d29398 100644 (file)
@@ -2,7 +2,7 @@
 
 @subsection Subsection
 
-@emph{strong}  @emph{with emphasis} 
+@strong{strong} @emph{with emphasis}
 @code{var} @{in braces@}
 @itemize @bullet
 @item
@@ -67,7 +67,7 @@ Example:
 Examples:
 @itemize @minus
 @item
-@emph{verbatim}
+@strong{verbatim}
 @item
 @{braces@}
 @end itemize
@@ -76,12 +76,12 @@ Examples:
 
 @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