CopyPastor

Detecting plagiarism made easy.

Score: 1.8845477974851716; Reported for: String similarity, Exact paragraph match Open both answers

Possible Plagiarism

Plagiarized on 2016-08-23
by Hassan ALi

Original Post

Original - Posted on 2014-06-10
by Notoc



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Adding a newline in phpword has bothered me, and I finnaly found solution, by accident, so here it is: And this justifies the text.
$PHPWord->addParagraphStyle('pJustify', array('align' => 'both', 'spaceBefore' => 0, 'spaceAfter' => 0, 'spacing' => 0)); //add this style then append it to text below $section->addText('something', 'textstyle', 'pJustify'); //the text behind this will be justified and will be in a new line, not in a new paragraph $section->addText('behind', 'textstyle', 'pJustify');
This will output:
Adding a newline in phpword has bothered me, and I finnaly found solution, by accident, so here it is: And this justifies the text.
$PHPWord->addParagraphStyle('pJustify', array('align' => 'both', 'spaceBefore' => 0, 'spaceAfter' => 0, 'spacing' => 0)); //add this style then append it to text below $section->addText('something', 'textstyle', 'pJustify'); //the text behind this will be justified and will be in a new line, not in a new paragraph $section->addText('behind', 'textstyle', 'pJustify');
This will output:
something
behind

        
Present in both answers; Present only in the new answer; Present only in the old answer;