LEFT | RIGHT |
1 // Copyright (C) 2007 Google Inc. | 1 // Copyright (C) 2007 Google Inc. |
2 // Licensed under the Apache License, Version 2.0 (the "License"); | 2 // Licensed under the Apache License, Version 2.0 (the "License"); |
3 // you may not use this file except in compliance with the License. | 3 // you may not use this file except in compliance with the License. |
4 // You may obtain a copy of the License at | 4 // You may obtain a copy of the License at |
5 // | 5 // |
6 // http://www.apache.org/licenses/LICENSE-2.0 | 6 // http://www.apache.org/licenses/LICENSE-2.0 |
7 // | 7 // |
8 // Unless required by applicable law or agreed to in writing, software | 8 // Unless required by applicable law or agreed to in writing, software |
9 // distributed under the License is distributed on an "AS IS" BASIS, | 9 // distributed under the License is distributed on an "AS IS" BASIS, |
10 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 10 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 fail(sb.toString().trim()); | 241 fail(sb.toString().trim()); |
242 } | 242 } |
243 } | 243 } |
244 | 244 |
245 private static final String normalizeIndentation(String xml) { | 245 private static final String normalizeIndentation(String xml) { |
246 return xml.replaceAll("\n +([?:.])", "$1") | 246 return xml.replaceAll("\n +([?:.])", "$1") |
247 .replaceAll("\\(\n +", "(") | 247 .replaceAll("\\(\n +", "(") |
248 .replaceAll("\n *", " "); | 248 .replaceAll("\n *", " "); |
249 } | 249 } |
250 } | 250 } |
LEFT | RIGHT |