Problems with comment indentation
"Steinar Bang [email protected] [emacs-nxml-mode]" <[email protected]> Sat, 03 Nov 2018 10:07:37 +0100
| Newsgroups | gmane.emacs.nxml.general |
|---|---|
| Organization | Probably a good idea |
| Message-ID | <[email protected]> |
Emacs version: GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2017-09-15, modified by Debian
(I'm using the version of nxml delivered with emacs)
I have some comments like this in my XML files:
<!--
Copyright 2018 Steinar Bang
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations
under the License.
-->
I would like the formatting to stay like this after reindenting the
buffer, however when I indent the buffer, the indentation of the first
line is kept, but all of the other lines are moved to the left margin:
<!--
Copyright 2018 Steinar Bang
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations
under the License.
-->
Is it possible to make nxml preserve the original indentation in these
comments?
Thanks!
- Steinar
------------------------------------
Posted by: Steinar Bang <[email protected]>
------------------------------------