extensionPrefs: Trick xgettext into accepting odd number of backticks
Xgettext learned about template strings now, which is good. However it's still buggy, so instead of the "classic" xgettext issue with backticks, we now have exciting new issues to find work-arounds for. One issue is that it doesn't detect backticks inside string constants as regular characters, so having an odd number of backticks throws off its regex. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/792
This commit is contained in:
parent
fa1b7a9ef5
commit
10b2083d3e
@ -159,14 +159,14 @@ var Application = GObject.registerClass({
|
|||||||
// markdown for pasting in gitlab issues
|
// markdown for pasting in gitlab issues
|
||||||
let lines = [
|
let lines = [
|
||||||
`The settings of extension ${row.uuid} had an error:`,
|
`The settings of extension ${row.uuid} had an error:`,
|
||||||
'```',
|
'```', // '`' (xgettext throws up on odd number of backticks)
|
||||||
`${exc}`,
|
`${exc}`,
|
||||||
'```',
|
'```', // '`'
|
||||||
'',
|
'',
|
||||||
'Stack trace:',
|
'Stack trace:',
|
||||||
'```',
|
'```', // '`'
|
||||||
exc.stack.replace(/\n$/, ''), // stack without trailing newline
|
exc.stack.replace(/\n$/, ''), // stack without trailing newline
|
||||||
'```',
|
'```', // '`'
|
||||||
''
|
''
|
||||||
];
|
];
|
||||||
clipboard.set_text(lines.join('\n'), -1);
|
clipboard.set_text(lines.join('\n'), -1);
|
||||||
|
Loading…
Reference in New Issue
Block a user