aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichal Nazarewicz2018-03-31 14:16:54 +0100
committerMichal Nazarewicz2018-04-07 11:16:12 +0100
commit8d3bb7beb4bfab60ba31505728f8f945116d7a40 (patch)
treec8bea63e9079c07dd69193ac3cf6ddaf6af1d7d3 /src
parent358da4565b589570759ddc9c2d1043405fdbb26e (diff)
downloademacs-8d3bb7beb4bfab60ba31505728f8f945116d7a40.tar.gz
emacs-8d3bb7beb4bfab60ba31505728f8f945116d7a40.zip
Handle quotation marks and apostrophes in ‘sgml-quote’
To be able to use text in an HTML argument, quotation marks need to be replaced with an appropriate character reference. Make ‘sgml-quote’ do that. While at it, fix entiteis not being unquoted if they lack closing semicolon (e.g. ‘&amp’) occuring at the very end of a region. Even though unlikely, make ‘sgml-quote’ handle this scenario. * lisp/textmodes/sgml-mode.el (sgml-quote): Handle quotation marks and apostrophes. Match entities lacking semicolon at the end of regions. * test/lisp/textmodes/sgml-mode-tests.el (sgml-quote-works): New test case for ‘sgml-quote’ function.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions