Modified: trunk/lib/rest.rb (2961 => 2962)
--- trunk/lib/rest.rb 2012-03-06 15:44:06 UTC (rev 2961)
+++ trunk/lib/rest.rb 2012-03-06 15:48:38 UTC (rev 2962)
@@ -15,7 +15,7 @@
TABLES = parse_excel_2003_xml(File.read('config/tables.xml'),
{ 'Model' => { :indices => [ 'REST Entity' ],
- :lists => [ 'REST Attribute', 'Encoding', 'Accessor',
+ :lists => [ 'REST Attribute', 'Encoding', 'HTML', 'Accessor',
'Create', 'Read', 'Update', 'Read by default',
'List Element Name', 'List Element Accessor',
'Example', 'Versioned', 'Key type',
@@ -168,6 +168,8 @@
accessor = model_data['Accessor'][i]
+ accessor = "#{accessor}_plaintext" if query["show-plaintext"] == "yes" && model_data['HTML'][i] == "yes"
+
text = ''
attrs = {}