GNU bug report logs -
#25373
25.1.91; emacs align.el patch for CSS alignment
Previous Next
Reported by: John Wiegley <jwiegley <at> gmail.com>
Date: Fri, 6 Jan 2017 07:25:02 UTC
Severity: normal
Tags: patch
Merged with 23238
Found in version 25.1.91
Done: Simen Heggestøyl <simenheg <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
From: Le Wang <l26wang <at> gmail.com>
The regexp for CSS currently fails for the following CSS:
div.indented{
margin-left: 2.0em;
background: #ccccff;
border: 1px solid red;}
because of the dash in "margin-left"
Here is a patch
--- c:/emacs/emacs-23.3/lisp/align.el 2011-01-08 12:45:14.000000000 +0800
+++ c:/Users/Le/cygwin_home/tmp/align.el 2011-08-28
00:28:28.966461600 +0800
@@ -578,7 +578,7 @@
(eq '- current-prefix-arg)))))
(css-declaration
- (regexp . "^\\s-*\\w+:\\(\\s-*\\).*;")
+ (regexp . "^\\s-*\\(?:\\w\\|\\s_\\)+:\\(\\s-*\\).*;")
(group . (1))
(modes . '(css-mode html-mode))))
"A list describing all of the available alignment rules.
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
This bug report was last modified 8 years and 192 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.