Révision 3213

tmp/org.txm.groovy.core/src/groovy/org/txm/macro/table/Table2XMLMacro.groovy (revision 3213)
198 198
outputDirectory.mkdir()
199 199

  
200 200
ConsoleProgressBar cpb = new ConsoleProgressBar(texts.size())
201
def nText = 0
201 202
for (def id : texts.keySet()) {
203
	nText++
202 204
	cpb.tick()
203 205
	def toWrite = texts[id]
204 206
	def text = toWrite[0]
......
240 242
			}
241 243
		}
242 244
		
245
		if (!textOrderWritten) {
246
			writer.writeAttribute("text-order", String.sprintf("%08d", nText))
247
			textOrderWritten = true;
248
		}
249
		
243 250
		writer.writeCharacters("\n") // simple XML formating
244 251
		
245 252
		writer.writeStartElement("metadata")

Formats disponibles : Unified diff