Mercurial > octave
changeset 26143:c7f845bf4fec
doc browser: improve filtering of octave version in history titles (bug #54938)
* documentation.cc (update_history): use more generic regular expression for
detecting the octave vesion string
author | Torsten <mttl@mailbox.org> |
---|---|
date | Tue, 27 Nov 2018 22:04:22 +0100 |
parents | b9d72a2dac8f |
children | 494452db0477 |
files | libgui/src/documentation.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/documentation.cc Tue Nov 27 12:14:41 2018 -0800 +++ b/libgui/src/documentation.cc Tue Nov 27 22:04:22 2018 +0100 @@ -719,7 +719,7 @@ for (int i = 0; i < count; i++) { QString title = m_doc_browser->historyTitle (prev_next*(i+1)); - title.remove (QRegExp (" \\(GNU Octave \\(version [^\\)]*\\)\\)$")); + title.remove (QRegExp ("\\s*\\(*GNU Octave \\(version [^\\)]*\\)[: \\)]*")); if (i == 0) a->setText (title); // set tool tip for prev/next buttons