Ticket #1063 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

three backspaces for <nowiki> not working

Reported by: psd Owned by: JeremyRuston
Priority: undefined Milestone: 2.5.2
Component: core Version:
Severity: undefined Keywords:
Cc:

Description

Looking at Formatter.js, three backspaces should be a shortcut for <nowiki>text not --wikified--</nowiki> but no amount of backspacing works for me.

If we migrate the Wikifier jsspec tests, we can add a test case for this issue.

Change History

follow-up: ↓ 2   Changed 3 years ago by FND

  • milestone changed from 2.5.1 to 2.5.2

Backspaces?

Triple quotes work fine for me:

"""text not --wikified--"""

in reply to: ↑ 1   Changed 3 years ago by EricShulman

Replying to FND:

Backspaces? Triple quotes work fine for me

I think perhaps Paul meant to write "backslashes"... a quick glance at the regexp for 'rawtext':

match: "\"{3}|<nowiki>",

shows how it could easily be mis-read as "three backslashes" rather than the actual "three quotes" syntax

If this is the case, then we should close this ticket as 'invalid'.

  Changed 3 years ago by psd

  • status changed from new to closed
  • resolution set to invalid

Ah, backslashes it was and my version shows:

match: "\\\"{3}|<nowiki>",

which, um, yeah I misread :"( thanks for clearing that up!

  Changed 3 years ago by FND

It seems the RegEx? there is unnecessarily complex - simplified in changeset:9794.

Note: See TracTickets for help on using tickets.