OLD | NEW |
1 #!/usr/bin/env python | |
2 | |
3 # Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 1 # Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
4 # | 2 # |
5 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
6 # modification, are permitted provided that the following conditions | 4 # modification, are permitted provided that the following conditions |
7 # are met: | 5 # are met: |
8 # | 6 # |
9 # 1. Redistributions of source code must retain the above | 7 # 1. Redistributions of source code must retain the above |
10 # copyright notice, this list of conditions and the following | 8 # copyright notice, this list of conditions and the following |
11 # disclaimer. | 9 # disclaimer. |
12 # 2. Redistributions in binary form must reproduce the above | 10 # 2. Redistributions in binary form must reproduce the above |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 self.converted_data.extend(['&#', name, ';']) | 209 self.converted_data.extend(['&#', name, ';']) |
212 | 210 |
213 def handle_comment(self, data): | 211 def handle_comment(self, data): |
214 self.converted_data.extend(['<!-- ', data, ' -->']) | 212 self.converted_data.extend(['<!-- ', data, ' -->']) |
215 | 213 |
216 def handle_decl(self, decl): | 214 def handle_decl(self, decl): |
217 self.converted_data.extend(['<!', decl, '>']) | 215 self.converted_data.extend(['<!', decl, '>']) |
218 | 216 |
219 def handle_pi(self, data): | 217 def handle_pi(self, data): |
220 self.converted_data.extend(['<?', data, '>']) | 218 self.converted_data.extend(['<?', data, '>']) |
OLD | NEW |