aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/print.cc
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-08 08:26:50 +0100
committereldritch horrors <pennae@lix.systems>2024-03-09 07:20:23 -0700
commit73cdaf44cf85d3a96596172edb10c9bc0509c1e0 (patch)
treed4c6ead1d9a0be5530b7b60206c94fafe9825134 /src/libexpr/print.cc
parent4dabde04853d8eb3924750f0c1c1841b6119d81d (diff)
`prettyPrint` -> `shouldPrettyPrint`
(cherry picked from commit 1c5f5d4291df7bf80806e57c75d2ec67bced8616) Change-Id: I7a517490e7baa5cef00716f6d6cfcbcbcdde11bf
Diffstat (limited to 'src/libexpr/print.cc')
-rw-r--r--src/libexpr/print.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libexpr/print.cc b/src/libexpr/print.cc
index 76f9a9c56..572db25ed 100644
--- a/src/libexpr/print.cc
+++ b/src/libexpr/print.cc
@@ -166,14 +166,14 @@ private:
void increaseIndent()
{
- if (options.prettyPrint()) {
+ if (options.shouldPrettyPrint()) {
indent.append(options.prettyIndent, ' ');
}
}
void decreaseIndent()
{
- if (options.prettyPrint()) {
+ if (options.shouldPrettyPrint()) {
assert(indent.size() >= options.prettyIndent);
indent.resize(indent.size() - options.prettyIndent);
}
@@ -277,7 +277,7 @@ private:
bool shouldPrettyPrintAttrs(AttrVec & v)
{
- if (!options.prettyPrint() || v.empty()) {
+ if (!options.shouldPrettyPrint() || v.empty()) {
return false;
}
@@ -354,7 +354,7 @@ private:
bool shouldPrettyPrintList(std::span<Value * const> list)
{
- if (!options.prettyPrint() || list.empty()) {
+ if (!options.shouldPrettyPrint() || list.empty()) {
return false;
}