diff options
| author | Michal Nazarewicz | 2018-03-31 14:16:54 +0100 |
|---|---|---|
| committer | Michal Nazarewicz | 2018-04-07 11:16:12 +0100 |
| commit | 8d3bb7beb4bfab60ba31505728f8f945116d7a40 (patch) | |
| tree | c8bea63e9079c07dd69193ac3cf6ddaf6af1d7d3 /src/process.c | |
| parent | 358da4565b589570759ddc9c2d1043405fdbb26e (diff) | |
| download | emacs-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. ‘&’) 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/process.c')
0 files changed, 0 insertions, 0 deletions