mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-22 16:04:07 +00:00
21 lines
287 B
C
21 lines
287 B
C
|
// -*- C++ -*-
|
||
|
#ifndef LYX_MANIP_H
|
||
|
#define LYX_MANIP_H
|
||
|
|
||
|
#include <iomanip>
|
||
|
|
||
|
///
|
||
|
inline
|
||
|
ostream & newlineAndDepth_helper(ostream & s, int n)
|
||
|
{
|
||
|
return s << '\n' << string(n, ' ');
|
||
|
}
|
||
|
///
|
||
|
inline
|
||
|
omanip<int> newlineAndDepth(int n)
|
||
|
{
|
||
|
return omanip<int>(newlineAndDepth_helper, n);
|
||
|
}
|
||
|
|
||
|
#endif
|