diff options
author | Topi Reinio <topi.reinio@qt.io> | 2021-11-23 16:40:15 +0100 |
---|---|---|
committer | Topi Reinio <topi.reinio@qt.io> | 2021-12-14 09:58:50 +0100 |
commit | b6db42d80c521345b60fc117af435462bacfa664 (patch) | |
tree | dfca0f9faf68072439db273c5863d5a94618bf2d /examples/help | |
parent | 7ef57149d46fa783aab793c7d72a3960790574f6 (diff) |
qdoc: Allow parameters for the \include command
Allow an arbitrary number (up to nine) of extra parameters to the
\include command, and replace the matching \1..\9 placeholders in
the quoted content with strings passed as parameters.
This enables reusing oft-repeated content but still customizing
each occurrence.
The original second argument for \include (the snippet id tag)
was constructed by taking everything up until a newline - the
extra parameters must however each be enclosed in braces to
support whitespace within a parameter. Keep the old syntax
functional as it is widely used although not explicitly
documented.
[ChangeLog][qdoc] QDoc now allows extra parameters for the
\include command to customize the quoted content.
Pick-to: 6.3
Fixes: QTBUG-48742
Change-Id: I03c7ae02660f090971e3ed769a62ed5ee18557f0
Reviewed-by: Luca Di Sera <luca.disera@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'examples/help')
0 files changed, 0 insertions, 0 deletions