mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-27 10:08:11 +08:00
Remove underscore escaping for ZPL templates previews [SCI-7393]
This commit is contained in:
parent
c2e8abb4a4
commit
925d7e5c45
1 changed files with 1 additions and 7 deletions
|
@ -17,7 +17,7 @@ class LabelTemplatesPreviewService
|
||||||
invocation_type: 'RequestResponse',
|
invocation_type: 'RequestResponse',
|
||||||
log_type: 'Tail',
|
log_type: 'Tail',
|
||||||
payload:
|
payload:
|
||||||
"{ \"content\": #{sanitize_zpl_code(@params[:zpl]).to_json},"\
|
"{ \"content\": #{@params[:zpl].to_json},"\
|
||||||
"\"width\": #{@params[:width]},"\
|
"\"width\": #{@params[:width]},"\
|
||||||
"\"height\": #{@params[:height]},"\
|
"\"height\": #{@params[:height]},"\
|
||||||
"\"density\": #{@params[:density]} "\
|
"\"density\": #{@params[:density]} "\
|
||||||
|
@ -35,10 +35,4 @@ class LabelTemplatesPreviewService
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def sanitize_zpl_code(zpl_code)
|
|
||||||
zpl_code.gsub('_', '_5F')
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue