Skip to content

Commit

Permalink
Serialize new percent ref boxes as "%n"
Browse files Browse the repository at this point in the history
  • Loading branch information
rhennigan committed Jan 4, 2025
1 parent e1ed62e commit 98445d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Chatbook/Serialization.wl
Original file line number Diff line number Diff line change
Expand Up @@ -1300,6 +1300,10 @@ fasterCellToString0[ TemplateBox[ args: { _, _, str_String, ___ }, "MessageTempl
fasterCellToString0 @ str
);

(* Percent References *)
fasterCellToString0[ TemplateBox[ KeyValuePattern[ "OutNumber" -> n_Integer ], "PercentRef", ___ ] ] :=
"%" <> ToString @ n;

(* Large Outputs *)
fasterCellToString0[ TemplateBox[ KeyValuePattern[ "shortenedBoxes" -> boxes_ ], "OutputSizeLimitTemplate", ___ ] ] :=
fasterCellToString0 @ boxes;
Expand Down

0 comments on commit 98445d1

Please sign in to comment.