summaryrefslogtreecommitdiff
path: root/src/GF/Canon
diff options
context:
space:
mode:
authoraarne <unknown>2004-03-26 20:08:30 +0000
committeraarne <unknown>2004-03-26 20:08:30 +0000
commit6719aedde34c3a4f0ccb78931968c6fe490b3282 (patch)
tree489e96a556d27ba87474c4ce89e3757a17ececb4 /src/GF/Canon
parent2433403b6247022ac56133ca935307868fcef6b9 (diff)
Better help.
Diffstat (limited to 'src/GF/Canon')
-rw-r--r--src/GF/Canon/CMacros.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/GF/Canon/CMacros.hs b/src/GF/Canon/CMacros.hs
index 85a465871..0a8b360be 100644
--- a/src/GF/Canon/CMacros.hs
+++ b/src/GF/Canon/CMacros.hs
@@ -58,11 +58,12 @@ markSubterm (beg, end) t = case t of
R rs -> R $ map markField rs
T ty cs -> T ty [Cas p (mark v) | Cas p v <- cs]
FV ts -> FV $ map mark ts
- _ -> foldr1 C [tK beg, t, tK end] -- t : Str guaranteed?
+ _ -> foldr1 C (tk beg ++ [t] ++ tk end) -- t : Str guaranteed?
where
mark = markSubterm (beg, end)
markField lt@(Ass l t) = if isLinLabel l then (Ass l (mark t)) else lt
-
+ tk s = if null s then [] else [tK s]
+
tK :: String -> Term
tK = K . KS