mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-09 23:16:00 -06:00
#2631 Text Export to Eclipse : Generated text file has too many characters in line
This commit is contained in:
parent
8db8575d1e
commit
4060e7e5a5
@ -574,6 +574,7 @@ void RicWellPathExportCompletionDataFeatureImpl::printCompletionsToFile(
|
||||
|
||||
QTextStream stream(&exportFile);
|
||||
RifEclipseDataTableFormatter formatter(stream);
|
||||
formatter.setColumnSpacing(3);
|
||||
|
||||
for (const auto& gridCompletions : completionsPerGrid)
|
||||
{
|
||||
|
@ -36,6 +36,14 @@ RifEclipseDataTableFormatter::~RifEclipseDataTableFormatter()
|
||||
CVF_ASSERT(m_columns.empty());
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifEclipseDataTableFormatter::setColumnSpacing(int spacing)
|
||||
{
|
||||
m_colSpacing = spacing;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -106,6 +106,8 @@ public:
|
||||
RifEclipseDataTableFormatter(QTextStream& out);
|
||||
virtual ~RifEclipseDataTableFormatter();
|
||||
|
||||
void setColumnSpacing(int spacing);
|
||||
|
||||
RifEclipseDataTableFormatter& keyword(const QString keyword);
|
||||
RifEclipseDataTableFormatter& header(std::vector<RifEclipseOutputTableColumn> tableHeader);
|
||||
RifEclipseDataTableFormatter& add(const QString str);
|
||||
|
Loading…
Reference in New Issue
Block a user