[packages/adapter: 286/631] - avoid formatting comments in preambles
glen
glen at pld-linux.org
Mon Sep 12 19:58:25 CEST 2016
commit 08f60a7318f44bab6b5e008fda501c6c49fc6962
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Mon Feb 13 12:43:29 2006 +0000
- avoid formatting comments in preambles
Changed files:
adapter.awk -> 1.276
adapter.awk | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 8eaa8c8..f89c853 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -867,6 +867,9 @@ function fixedsub(s1,s2,t, ind) {
# There should be one or two tabs after the colon.
function format_preamble()
{
+ if (/^#/) {
+ return;
+ }
sub(/:[ \t]*/, ":")
if (match($0, /[A-Za-z0-9(),#_ \t]+[ \t]*:[ \t]*/) == 1) {
if (RLENGTH < 8)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885
More information about the pld-cvs-commit
mailing list