summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-03-28 12:44:05 +0200
committerLaurenz <laurmaedje@gmail.com>2021-03-29 15:02:15 +0200
commit8c27dc101043a4a24132bd73ad39a592f9c2b2ad (patch)
tree91b0dde4d1266cab84eabd95142000a300900788 /src/library
parent318eb9021edc493f5181247dbb7963de34126688 (diff)
Write spaces and linebreaks into text runs ✒
Diffstat (limited to 'src/library')
-rw-r--r--src/library/markup.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/markup.rs b/src/library/markup.rs
index ac2356a9..0ace43b6 100644
--- a/src/library/markup.rs
+++ b/src/library/markup.rs
@@ -160,7 +160,7 @@ pub fn raw(ctx: &mut EvalContext, args: &mut FuncArgs) -> Value {
let snapshot = ctx.state.clone();
ctx.set_monospace();
- ctx.push_text(&text);
+ ctx.push_text(text.clone());
ctx.state = snapshot;
if block {