all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Web mode warts - help ...
@ 2022-01-31 14:08 Skip Montanaro
  2022-02-01 20:14 ` Lele Gaifax
  0 siblings, 1 reply; 6+ messages in thread
From: Skip Montanaro @ 2022-01-31 14:08 UTC (permalink / raw)
  To: Help GNU Emacs

I installed web-mode a few days ago to help me more easily develop some
Jinja2 templates for my website. When a template is largely made up of
Jinja2 blocks and HTML tags it seems to work admirably. It doesn't seem to
flow text the way I'd expect in the presence of inline tags. The biggest
problem is that it when I add <a>...</a> tags around a chunk of text in a
paragraph it reflows the rest of the text after that so it's indented with
the beginning of the href attribute. Here's a snippet:

        than a static collection of emails. The current incarnation
        was built with <a href="https://nginx.org/">NGINX</a>,
        <a href="https://gunicorn.org/">Gunicorn</a>, and <a href="
https://flask.palletsprojects.com/">Flask</a>. It
                                                             includes
                                                             a bit
                                                             different
                                                             presentation
                                                             and
                                                             navigation

That weird bit of text was reflowed as soon as I closed the <a> tag on the
Flask reference. (I've also seen it when typing "/" within the href.) In
addition to creating a bunch of extra work to get things properly
structured again, the automatic reflow weirdness only highlights my second
complaint, that it seems to refuse to wrap text at the fill-column as I
type. I'm constantly having to manually fill the paragraph.

A third gripe. I enter <ul>, hit return. I enter <li> then type the text
for that list item. I type </ and instead of closing the list item, it
closes the unordered list. What's up with that?

I didn't see anything on the web-mode website which would suggest how to
fix these problems. Can someone explain how to get it to change (any of)
these behaviors?

Thanks,

Skip Montanaro


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-02-02 19:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-31 14:08 Web mode warts - help Skip Montanaro
2022-02-01 20:14 ` Lele Gaifax
2022-02-02  2:17   ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-02 16:15     ` Skip Montanaro
2022-02-02 19:20       ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-02 16:02   ` Skip Montanaro

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.