This is a really minor point, but it still bugs me: when you triple-click the subject line of a Gerrit change (in PolyGerrit – haven’t tried the old UI), copy it, and paste it somewhere else, the pasted text will start with a single space. This is inconvenient, for example, when adding the subject to the deployment calendar, or when pasting it into the scap sync-file message argument ([[gerrit:123456| argh no space here]]). Can we fix this?
JavaScript workaround:
var textNode = document.querySelector('#commitMessageEditor .gr-change-view').childNodes[0]; if ( textNode.nodeName === '#text' ) { textNode.textContent = textNode.textContent.trim(); }
update 2022-02-25 seems to work with Chromium but triple clicking does not work on Firefox.