mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 16:14:05 +01:00
Extracted class IndentedPrintDecorator from PrettyPrintDecorator
This commit is contained in:
@@ -26,12 +26,18 @@ namespace ArduinoJson
|
||||
return printTo(sb);
|
||||
}
|
||||
|
||||
size_t prettyPrintTo(Print& p) const
|
||||
size_t prettyPrintTo(IndentedPrintDecorator& p) const
|
||||
{
|
||||
PrettyPrintDecorator decorator(p);
|
||||
return printTo(decorator);
|
||||
}
|
||||
|
||||
size_t prettyPrintTo(Print& p) const
|
||||
{
|
||||
IndentedPrintDecorator decorator(p);
|
||||
return printTo(decorator);
|
||||
}
|
||||
|
||||
virtual size_t printTo(Print& p) const = 0;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user