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