Skip to content

Commit

Permalink
replaced some tabs with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
naxuroqa committed Aug 18, 2014
1 parent 64108e7 commit 463ae9a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/core/Tools.vala
Original file line number Diff line number Diff line change
Expand Up @@ -107,23 +107,23 @@ namespace Venom {

public static string remove_whitespace(string str) {
try {
var regex = new GLib.Regex ("\\s");
return(regex.replace(str, -1, 0, ""));
} catch (GLib.RegexError e) {
GLib.assert_not_reached ();
}
var regex = new GLib.Regex ("\\s");
return(regex.replace(str, -1, 0, ""));
} catch (GLib.RegexError e) {
GLib.assert_not_reached ();
}
}

public static string markup_uris(string text) {
string escaped_text = Markup.escape_text(text);
string ret;
try {
ret = Tools.uri_regex.replace(escaped_text, -1, 0, "<a href=\"\\g<u>\">\\g<u></a>");
} catch (GLib.RegexError e) {
Logger.log(LogLevel.ERROR, "Error when doing uri markup: " + e.message);
return text;
}
return ret;
} catch (GLib.RegexError e) {
Logger.log(LogLevel.ERROR, "Error when doing uri markup: " + e.message);
return text;
}
return ret;
}

public static string friend_add_error_to_string(Tox.FriendAddError friend_add_error) {
Expand Down

0 comments on commit 463ae9a

Please sign in to comment.