BUG: coded: preserve VERBATIMSTRING. Fixes #1497.

This commit is contained in:
mattijs 2020-01-13 15:09:15 +00:00
parent 9b67ffaf74
commit 12bd45673a

View File

@ -6,7 +6,7 @@
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2016-2019 OpenCFD Ltd. Copyright (C) 2016-2020 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
@ -62,12 +62,8 @@ static inline void writeEntryIfPresent
if (eptr) if (eptr)
{ {
os.writeKeyword(key) const token& tok = eptr->stream()[0];
<< token::HASH << token::BEGIN_BLOCK; os.writeKeyword(key) << tok << token::END_STATEMENT << nl;
os.writeQuoted(string(eptr->stream()), false)
<< token::HASH << token::END_BLOCK
<< token::END_STATEMENT << nl;
} }
} }
//! \endcond //! \endcond