Welcome to little lamb

Code » qmdoc » commit e25e579

Fix handling attributes

author Olivier Brunel
2022-12-29 17:15:38 UTC
committer Olivier Brunel
2022-12-29 17:15:38 UTC
parent aefaedf3f5b7494ab9778e2061687c0a9bcc554c

Fix handling attributes

main.c +1 -1

diff --git a/main.c b/main.c
index c41aa65..1be3d29 100644
--- a/main.c
+++ b/main.c
@@ -235,7 +235,7 @@ attribute(struct ctx *ctx, MD_ATTRIBUTE *attr)
         switch (attr->substr_types[n]) {
             case MD_TEXT_NORMAL:
             case MD_TEXT_ENTITY:
-                if (!escape_text(ctx, attr->text, l))
+                if (!escape_text(ctx, attr->text + cur, l))
                     return 0;
                 break;