Patch "docs: Restore "smart quotes" for quotes" has been added to the 6.8-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    docs: Restore "smart quotes" for quotes

to the 6.8-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     docs-restore-smart-quotes-for-quotes.patch
and it can be found in the queue-6.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 51ea09a47a4f521ba5335c6f6f2aa8fa9a6d6705
Author: Akira Yokosawa <akiyks@xxxxxxxxx>
Date:   Sun Feb 25 18:46:00 2024 +0900

    docs: Restore "smart quotes" for quotes
    
    [ Upstream commit fe2562582bffe675721e77e00b3bf5bfa1d7aeab ]
    
    Commit eaae75754d81 ("docs: turn off "smart quotes" in the HTML build")
    disabled conversion of quote marks along with that of dashes.
    Despite the short summary, the change affects not only HTML build
    but also other build targets including PDF.
    
    However, as "smart quotes" had been enabled for more than half a
    decade already, quite a few readers of HTML pages are likely expecting
    conversions of "foo" -> “foo” and 'bar' -> ‘bar’.
    
    Furthermore, in LaTeX typesetting convention, it is common to use
    distinct marks for opening and closing quote marks.
    
    To satisfy such readers' expectation, restore conversion of quotes
    only by setting smartquotes_action [1].
    
    Link: [1] https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-smartquotes_action
    Cc: stable@xxxxxxxxxxxxxxx  # v6.4
    Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx>
    Signed-off-by: Jonathan Corbet <corbet@xxxxxxx>
    Link: https://lore.kernel.org/r/20240225094600.65628-1-akiyks@xxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/Documentation/conf.py b/Documentation/conf.py
index da64c9fb7e072..d148f3e8dd572 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -346,9 +346,9 @@ sys.stderr.write("Using %s theme\n" % html_theme)
 html_static_path = ['sphinx-static']
 
 # If true, Docutils "smart quotes" will be used to convert quotes and dashes
-# to typographically correct entities.  This will convert "--" to "—",
-# which is not always what we want, so disable it.
-smartquotes = False
+# to typographically correct entities.  However, conversion of "--" to "—"
+# is not always what we want, so enable only quotes.
+smartquotes_action = 'q'
 
 # Custom sidebar templates, maps document names to template names.
 # Note that the RTD theme ignores this




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux