BUG: coded: preserve VERBATIMSTRING. Fixes #1497.
This commit is contained in:
parent
9b67ffaf74
commit
12bd45673a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user