aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/qapi2texi.py4
-rw-r--r--tests/qapi-schema/doc-good.texi8
2 files changed, 6 insertions, 6 deletions
diff --git a/scripts/qapi2texi.py b/scripts/qapi2texi.py
index 5c4db78574..9e015002ef 100755
--- a/scripts/qapi2texi.py
+++ b/scripts/qapi2texi.py
@@ -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):
diff --git a/tests/qapi-schema/doc-good.texi b/tests/qapi-schema/doc-good.texi
index 1160aaf851..c410626e4a 100644
--- a/tests/qapi-schema/doc-good.texi
+++ b/tests/qapi-schema/doc-good.texi
@@ -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