You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a similar problem to #57 with the prettyPrint for the quoted string.
It is about prettyPrint automatically move the parts after token && to a new line even in a quoted string.
The example code is described as below.
Is there any quick workarounds for this issue? I'm really looking forward to it.
Thank you very much!
I am using language-docker-10.4.2.
moduleMain
( main
) whereimportqualifiedData.EitherasEitherimportqualifiedData.TextasTimportqualifiedData.Text.IOasT.IOimportqualifiedData.Text.LazyasLazyimportqualifiedLanguage.DockerasDockerimportPrelude (IO, ($))
main::IO()
main =T.IO.putStr prettyPrinted
where
prettyPrinted =Lazy.toStrict $Docker.prettyPrint parsed
parsed =Either.fromRight []$Docker.parseText source
source =T.pack "FROM alpine\nRUN grep -F 'cd dir && ./run.sh ' /opt/Makefile"
It should return
FROM alpine
RUN grep -F 'cd dir && ./run.sh ' /opt/Makefile
However, the actual return is as below, which creates different shell execution result.
FROM alpine
RUN grep -F 'cd dir \
&& ./run.sh ' /opt/Makefile
The text was updated successfully, but these errors were encountered:
Hi there,
I have a similar problem to #57 with the
prettyPrint
for the quoted string.It is about
prettyPrint
automatically move the parts after token&&
to a new line even in a quoted string.The example code is described as below.
Is there any quick workarounds for this issue? I'm really looking forward to it.
Thank you very much!
I am using language-docker-10.4.2.
It should return
However, the actual return is as below, which creates different shell execution result.
The text was updated successfully, but these errors were encountered: