Skip to content

Commit

Permalink
Merge pull request #9 from qbnu/revert-zwsp
Browse files Browse the repository at this point in the history
Revert "replace ZWSP by "\u200B""
  • Loading branch information
HFrost0 authored Jun 5, 2023
2 parents 55edf5e + ddd8303 commit bb25b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion danmakuC/csrc/ass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ vector<float> get_zoom_factor(vector<int>& source_size, vector<int>& target_size

// https://aegi.vmoe.info/docs/3.0/ASS_Tags/#index1h2
string ass_escape(string s) {
const string ZERO_WIDTH_SPACE = "\u200B"; // U+200B
const string ZERO_WIDTH_SPACE = "\xe2\x80\x8b"; // U+200B

// prevent "\" from causing line breaks/escaping anything ("\\" won't work)
string s2 = boost::replace_all_copy(s, R"(\)", R"(\)" + ZERO_WIDTH_SPACE);
Expand Down

0 comments on commit bb25b65

Please sign in to comment.