File:  [LON-CAPA] / modules / damieng / graphical_editor / loncapa_daxe / web / nodes / lcd_block_no_newline.dart
Revision 1.1: download - view: text, annotated - select for diffs
Fri Dec 18 22:14:23 2015 UTC (8 years, 5 months ago) by damieng
Branches: MAIN
CVS tags: HEAD
no newline added inside for some block elements

/*
  This file is part of LONCAPA-Daxe.

  LONCAPA-Daxe is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  LONCAPA-Daxe is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with Daxe.  If not, see <http://www.gnu.org/licenses/>.
*/

part of loncapa_daxe;

/**
 * Like LCDBlock, but with no newline added inside at serialization.
 * Jaxe display type: 'lcdblocknonewline'.
 */
class LCDBlockNoNewline extends LCDBlock {
  
  LCDBlockNoNewline.fromRef(x.Element elementRef) : super.fromRef(elementRef);
  
  LCDBlockNoNewline.fromNode(x.Node node, DaxeNode parent) : super.fromNode(node, parent);
  
  @override
  bool newlineInside() {
    return(false);
  }
  
}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>