Re: Types of quotes in xref linkend references
"Xi Ruoyao" ([email protected] via blfs-dev Mailing List) <[email protected]> Sun, 01 Mar 2026 12:59:01 +0800
| Newsgroups | gmane.linux.lfs.beyond.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 2026-03-01 at 02:59 +0000, lfs wrote: > Whilst looking to track down some package references within > the XML sources, I happened to notice, in > > x/installing/xorg-config.xml > > that it has some xref elements in which the linkend attributes > have targets enclosed in single quotes, rather than the double > quotes I had seen elsewhere, and, as it happened, happened to > be grep-ing for when I couldn't find something! > > I appreciate that there's no LFS style guide, and that one can > use either form, but "the numbers" > > $ grep -r linkend=\" . | wc -l > 9202 > $ > $ grep -r linkend=\' . | wc -l > 330 > $ > > might suggest that double quotes should be used for attribute > values, unless there's any specific reason why single quotes > are needed. I tend to use single quotes as they are more friendly to translators. In the translation workflow double quotes must be escaped in the msgstr and msgid entries. > Then again, maybe such inconsistencies in the sources are part > of the learning experience. Generally it's bad to perform such a repository-wide style change because it simply breaks git blame without any obvious benefit. -- Xi Ruoyao <[email protected]> -- http://lists.linuxfromscratch.org/sympa/info/blfs-dev Unsubscribe: See the above information page