mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: verbatim token output strips type (#1497)
- use os::write(token) for verbatim string to preserve its type
This commit is contained in:
@ -62,8 +62,12 @@ static inline void writeEntryIfPresent
|
||||
|
||||
if (eptr)
|
||||
{
|
||||
const token& tok = eptr->stream()[0];
|
||||
os.writeKeyword(key) << tok << token::END_STATEMENT << nl;
|
||||
const tokenList& toks = eptr->stream();
|
||||
|
||||
if (!toks.empty())
|
||||
{
|
||||
os.writeEntry(key, toks[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
//! \endcond
|
||||
|
||||
Reference in New Issue
Block a user