Commit 846508c3 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent fa9dad7b
...@@ -48,10 +48,22 @@ async function print() ...@@ -48,10 +48,22 @@ async function print()
let data=all[i].data let data=all[i].data
for (let j=0;j<data.length;j++) for (let j=0;j<data.length;j++)
{ {
console.log(data[j].data[2]) let currentSide=data[j].data[2]
text=text+data[j].text try {
if (j !==data.length-1) let nextSide=data[j+1].data[2]
text=text+'\n' if (typeof nextSide !=="undefined" && nextSide !==currentSide)
{
text=text+data[j].text
if (j !==data.length-1)
text=text+'\n'
}
}catch (e)
{
}
} }
// console.log(text) // console.log(text)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment