Commit 45ffda39 authored by Christer Ekholm's avatar Christer Ekholm

Added xml declaration of encoding in help-swedish.xml

To get rid of the following warning when building.

 Warning (emacs): File contents detected as iso-latin-1.
   Consider adding an xml declaration with the encoding specified,
   or saving as utf-8, as mandated by the xml specification.
parent 9f19be20
2014-07-13 Christer Ekholm <che@chrekh.se>
* help-swedish.xml: Added xml declaration of encoding used in the
file (ISO-8859-1).
* help-compile.el (lyskom-help-parse-buffer): Added regex to
strip the added xml-declaration in help-swedish.xml
2014-07-04 Christer Ekholm <che@chrekh.se>
* option-edit.el, swedish-strings.el, english-strings.el: Added
......
......@@ -309,6 +309,7 @@ CONTAINING-SYNTAX is the syntax specification for the containing tag."
(defun lyskom-help-parse-buffer ()
(lyskom-help-replace-regexp "[\r\n]" "")
(lyskom-help-replace-regexp "<!--[^>]*-->" "")
(lyskom-help-replace-regexp "<\\?xml[^>]*\\?>" "")
(lyskom-help-replace-regexp "\\s-+" " ")
(let ((parse (lyskom-help-parse-string (buffer-string)
'(toplevel nil nil (help)))))
......
<!-- -*-mode: xml-*- -->
<?xml version="1.0" encoding="ISO-8859-1"?>
<help language="sv">
<section id="help-on-command" prompt="Kommandobeskrivning">
<call function="lyskom-help-on-command" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment