mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Teach Desc class how to (optionally) use spaces for indentation.
And (to be consistent with current conventions for reST documentation) update places in the auto-documentation-generation framework where tabs were used in the generated reST.
This commit is contained in:
parent
e491caeeb7
commit
5fbcde7344
5 changed files with 19 additions and 7 deletions
|
@ -53,6 +53,9 @@ public:
|
|||
void PopIndent();
|
||||
int GetIndentLevel() const { return indent_level; }
|
||||
|
||||
int IndentSpaces() const { return indent_with_spaces; }
|
||||
void SetIndentSpaces(int i) { indent_with_spaces = i; }
|
||||
|
||||
void Add(const char* s, int do_indent=1);
|
||||
void AddN(const char* s, int len) { AddBytes(s, len); }
|
||||
void Add(int i);
|
||||
|
@ -135,6 +138,7 @@ protected:
|
|||
int want_quotes;
|
||||
int do_flush;
|
||||
int include_stats;
|
||||
int indent_with_spaces;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue