From 6244412c28e65cc8cd1d812f05edcec7d8c4ff73 Mon Sep 17 00:00:00 2001 From: kimth Date: Mon, 30 Jul 2012 18:59:11 -0400 Subject: [PATCH] Simplify default linenumbers behavior --- common/lib/capa/capa/inputtypes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/lib/capa/capa/inputtypes.py b/common/lib/capa/capa/inputtypes.py index 59ca03bf53..31482214b3 100644 --- a/common/lib/capa/capa/inputtypes.py +++ b/common/lib/capa/capa/inputtypes.py @@ -315,9 +315,8 @@ def textbox(element, value, status, render_template, msg=''): cols = element.get('cols') or '80' mode = element.get('mode') or 'python' # mode for CodeMirror, eg "python" or "xml" hidden = element.get('hidden', '') # if specified, then textline is hidden and id is stored in div of name given by hidden - linenumbers = element.get('linenumbers') # for CodeMirror + linenumbers = element.get('linenumbers','true') # for CodeMirror if not value: value = element.text # if no student input yet, then use the default input given by the problem - if linenumbers is None: linenumbers = 'true' context = {'id': eid, 'value': value, 'state': status, 'count': count, 'size': size, 'msg': msg, 'mode': mode, 'linenumbers': linenumbers, 'rows': rows, 'cols': cols,