Re: Problems with comment indentation
"Dave Pawson [email protected] [emacs-nxml-mode]" <[email protected]> Sat, 3 Nov 2018 10:40:06 +0000
| Newsgroups | gmane.emacs.nxml.general |
|---|---|
| Message-ID | <CAEncD4eqPrTo-mfT0zFGL2nxtHHYLgCNDRDBGEW3SZ-O1RBRsA@mail.gmail.com> |
Oddly, push the first line where you want it. Do the same with the second line. Highlight the para, hit C-q to format the para. I think that works. HTH On Sat, 3 Nov 2018 at 09:27, Steinar Bang [email protected] [emacs-nxml-mode] <[email protected]> wrote: > > 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]> > ------------------------------------ > > > ------------------------------------ > > Yahoo Groups Links > > > -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. ------------------------------------ Posted by: Dave Pawson <[email protected]> ------------------------------------