nxhtml does not indent <? and ?> after if etc...

Asked by ldiet

Hi.
I know my problem is similar to https://answers.launchpad.net/nxhtml/+question/43320 but I tried to modify mumamo-submode-indent-offset as suggested and it didn't to anything. The problem is that when I got something like

<?
...
if (...) {
?>
html code here

the "?>" is not indented (and so, everything that follows !). Is there a way to get this indented ?

Here's a screen to be more precise, you can see the problem on line 4 http://yfrog.com/c9screenthgp

I use this kind of code because I generate different html pages on one single php file depending on $_SESSION or $_POST etc...

PS : I'm using the last emacs and nxhtml 2.08-1 on an Arch Linux distribution (I installed the emacs-nxhtml package) with everything up to date.

Thank you.

Question information

Language:
English Edit question
Status:
Answered
For:
nXhtml Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
lborgman (lennart-borgman) said :
#1

Hi Laurent,

Thanks for telling me. Looks like I have introduced a bug somehow when trying to rework some of the indentation code. I do not have time to look at this (and some other waiting questions and bugs) until some time next week.

Perhaps you want to try the latest beta 2.09 if you are not doing that already (but I guess the problem might be there as well).

Can you help with this problem?

Provide an answer of your own, or ask ldiet for more information if necessary.

To post a message you must log in.