Skip to content

Commit

Permalink
Use verbatim string syntax for multiline demo output
Browse files Browse the repository at this point in the history
  • Loading branch information
ztefn committed Dec 20, 2024
1 parent 9882ad5 commit 3249efc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/network.vala
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ namespace Haguichi {
string output;

if (demo_mode) {
output = "
output = """
id : %s
name : %s
type : Mesh
owner : This computer
status : unlocked
approve : auto".printf (id, name);
approve : auto""".printf (id, name);
} else {
output = Command.return_output ("hamachi network \"%s\"".printf (Utils.clean_string (id)));
}
Expand Down

0 comments on commit 3249efc

Please sign in to comment.