58
59
string relative_path = GetRelativeEntryPath (path);
59
if (relative_path == null) {
60
if (relative_path == null)
63
63
List<string> path_list;
64
64
if (!messages.TryGetValue (message, out path_list)) {
110
110
fileSeparator2 = message_style.FileSeparator.Substring (si + 1);
113
formatter.Wrap = WrappingType.Word;
113
formatter.Wrap = message_style.Wrap ? WrappingType.Word : WrappingType.None;
114
114
formatter.LeftMargin = message_style.LineAlign;
115
115
formatter.ParagraphStartMargin = 0;
117
foreach (KeyValuePair<string, List<string>> message in messages) {
118
List<string> paths = message.Value;
119
paths.Sort ((a, b) => a.Length.CompareTo (b.Length));
121
formatter.BeginWord ();
123
formatter.Append (message_style.FirstFilePrefix);
124
for (int i = 0, n = paths.Count; i < n; i++) {
126
formatter.Append (fileSeparator1);
127
formatter.EndWord ();
128
formatter.BeginWord ();
129
formatter.Append (fileSeparator2);
117
if (!MessageFormat.ShowFilesForSingleComment && messages.Count == 1) {
118
string msg = messages.Keys.First ();
119
formatter.LeftMargin = formatter.ParagraphStartMargin;
120
formatter.Append (msg);
123
foreach (KeyValuePair<string, List<string>> message in messages) {
124
List<string> paths = message.Value;
125
paths.Sort ((a, b) => a.Length.CompareTo (b.Length));
127
formatter.BeginWord ();
129
formatter.Append (message_style.FirstFilePrefix);
130
for (int i = 0, n = paths.Count; i < n; i++) {
132
formatter.Append (fileSeparator1);
133
formatter.EndWord ();
134
formatter.BeginWord ();
135
formatter.Append (fileSeparator2);
137
string path = paths [i];
138
if (!MessageFormat.Style.IncludeDirectoryPaths)
139
path = Path.GetFileName (path);
141
formatter.Append (path);
131
formatter.Append (paths [i]);
134
formatter.Append (message_style.LastFilePostfix);
135
formatter.EndWord ();
136
formatter.Append (message.Key);
138
if (m_i++ < messages.Count - 1) {
139
formatter.AppendLine ();
140
for (int n=0; n < message_style.InterMessageLines; n++)
144
formatter.Append (message_style.LastFilePostfix);
145
formatter.EndWord ();
146
formatter.Append (message.Key);
148
if (m_i++ < messages.Count - 1) {
141
149
formatter.AppendLine ();
150
for (int n=0; n < message_style.InterMessageLines; n++)
151
formatter.AppendLine ();